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-caif.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-caif.c')
-rw-r--r-- | unit/test-caif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit/test-caif.c b/unit/test-caif.c index 51e29bc6..2c63d4c0 100644 --- a/unit/test-caif.c +++ b/unit/test-caif.c @@ -124,7 +124,7 @@ static void test_connect(gboolean use_socket) g_io_channel_unref(io); - if (!chat) { + if (chat == NULL) { g_printerr("Chat creation failed\n"); return; } |