summaryrefslogtreecommitdiffstats
path: root/gatchat/gatutil.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-11-27 17:39:00 -0200
committerDenis Kenzior <denkenz@gmail.com>2010-11-29 12:05:29 -0600
commit521071a7853b225713606de3e0421e680f187709 (patch)
tree57927fea85638f448436ea02706b99429ff13fc5 /gatchat/gatutil.c
parent00cdf2b427a788492baeb0e29b9063a36ef1effe (diff)
downloadofono-521071a7853b225713606de3e0421e680f187709.tar.bz2
gatchat: 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 'gatchat/gatutil.c')
-rw-r--r--gatchat/gatutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gatutil.c b/gatchat/gatutil.c
index 827dc60c..393d94cb 100644
--- a/gatchat/gatutil.c
+++ b/gatchat/gatutil.c
@@ -42,7 +42,7 @@ void g_at_util_debug_chat(gboolean in, const char *str, gsize len,
gsize ctrlz_size = strlen(ctrlz);
gsize i;
- if (!debugf || !len)
+ if (debugf == NULL || !len)
return;
for (i = 0; i < len; i++) {
@@ -116,11 +116,11 @@ void g_at_util_debug_dump(gboolean in, const unsigned char *buf, gsize len,
GString *str;
gsize i;
- if (!debugf || !len)
+ if (debugf == NULL || !len)
return;
str = g_string_sized_new(1 + (len * 2));
- if (!str)
+ if (str == NULL)
return;
g_string_append_c(str, type);