From 89fd4f13ef1d01498d2d0f1069fb390d0e0d8c29 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 15 May 2012 13:53:33 +0300 Subject: [PATCH] deref: fix a typo in the error message I suck at spelling dereference. Signed-off-by: Dan Carpenter --- check_deref.c | 2 +- validation/sm_implied6.c | 2 +- validation/sm_null_deref.c | 2 +- validation/sm_switch.c | 4 ++-- validation/sm_switch2.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/check_deref.c b/check_deref.c index 78905b21..8a0ec1e2 100644 --- a/check_deref.c +++ b/check_deref.c @@ -74,7 +74,7 @@ static void check_dereference(struct expression *expr) continue; add_ignore(my_id, sm->name, sm->sym); if (tmp->state == &null) { - sm_msg("error: potential null derefence '%s'.", tmp->name); + sm_msg("error: potential NULL dereference '%s'.", tmp->name); return; } if (tmp->state == &uninitialized) { diff --git a/validation/sm_implied6.c b/validation/sm_implied6.c index 154ccc50..4b6a7a14 100644 --- a/validation/sm_implied6.c +++ b/validation/sm_implied6.c @@ -36,6 +36,6 @@ void func (void) * check-command: smatch sm_implied6.c * * check-output-start -sm_implied6.c:29 func() error: potential null derefence 'b'. +sm_implied6.c:29 func() error: potential NULL dereference 'b'. * check-output-end */ diff --git a/validation/sm_null_deref.c b/validation/sm_null_deref.c index 63b32d04..2ee14370 100644 --- a/validation/sm_null_deref.c +++ b/validation/sm_null_deref.c @@ -57,7 +57,7 @@ sm_null_deref.c:18 func() error: potentially derefencing uninitialized 'aa'. sm_null_deref.c:23 func() error: we previously assumed 'a' could be null (see line 20) sm_null_deref.c:25 func() warn: variable dereferenced before check 'a' (see line 23) sm_null_deref.c:30 func() error: we previously assumed 'b' could be null (see line 25) -sm_null_deref.c:48 func() error: potential null derefence 'd'. +sm_null_deref.c:48 func() error: potential NULL dereference 'd'. * check-output-end */ diff --git a/validation/sm_switch.c b/validation/sm_switch.c index f4b91315..37bf2cba 100644 --- a/validation/sm_switch.c +++ b/validation/sm_switch.c @@ -52,7 +52,7 @@ void func (void) * check-known-to-fail * * check-output-start -sm_switch.c:38 func() error: potential null derefence 'a'. -sm_switch.c:39 func() error: potential null derefence 'b'. +sm_switch.c:38 func() error: potential NULL dereference 'a'. +sm_switch.c:39 func() error: potential NULL dereference 'b'. * check-output-end */ diff --git a/validation/sm_switch2.c b/validation/sm_switch2.c index 4a949e15..953e2702 100644 --- a/validation/sm_switch2.c +++ b/validation/sm_switch2.c @@ -44,7 +44,7 @@ void func (void) * check-command: smatch sm_switch2.c * * check-output-start -sm_switch2.c:31 func() error: potential null derefence 'a'. -sm_switch2.c:32 func() error: potential null derefence 'b'. +sm_switch2.c:31 func() error: potential NULL dereference 'a'. +sm_switch2.c:32 func() error: potential NULL dereference 'b'. * check-output-end */ -- 2.11.4.GIT