diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:38:57 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-29 11:48:53 -0600 |
commit | 2012940822278bfb61fbe018accd8c99362993a5 (patch) | |
tree | 0acd60ee6c5bfc6d4e3bae754b3f78d3226aa43e /unit/test-simutil.c | |
parent | 26b68846a8bd20395af34f21772da65ab406ad95 (diff) | |
download | ofono-2012940822278bfb61fbe018accd8c99362993a5.tar.bz2 |
unit: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
Diffstat (limited to 'unit/test-simutil.c')
-rw-r--r-- | unit/test-simutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unit/test-simutil.c b/unit/test-simutil.c index 7aa09b4b..155cddd6 100644 --- a/unit/test-simutil.c +++ b/unit/test-simutil.c @@ -372,7 +372,7 @@ static void test_eons() sim_eons_optimize(eons_info); op_info = sim_eons_lookup(eons_info, "246", "82"); - g_assert(!op_info); + g_assert(op_info == NULL); op_info = sim_eons_lookup(eons_info, "246", "81"); g_assert(op_info); @@ -391,7 +391,7 @@ static void test_ef_db() g_assert(info); info = sim_ef_db_lookup(0x6FB1); - g_assert(!info); + g_assert(info == NULL); info = sim_ef_db_lookup(0x2F05); g_assert(info); |