diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:39:00 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-29 12:05:29 -0600 |
commit | 521071a7853b225713606de3e0421e680f187709 (patch) | |
tree | 57927fea85638f448436ea02706b99429ff13fc5 /gatchat/gatmux.c | |
parent | 00cdf2b427a788492baeb0e29b9063a36ef1effe (diff) | |
download | ofono-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/gatmux.c')
-rw-r--r-- | gatchat/gatmux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gatmux.c b/gatchat/gatmux.c index fb912e63..9aed9879 100644 --- a/gatchat/gatmux.c +++ b/gatchat/gatmux.c @@ -414,7 +414,7 @@ static gboolean watch_dispatch(GSource *source, GSourceFunc callback, GAtMuxWatch *watch = (GAtMuxWatch *) source; GAtMuxChannel *channel = (GAtMuxChannel *) watch->channel; - if (!func) + if (func == NULL) return FALSE; return func(watch->channel, channel->condition & watch->condition, @@ -554,11 +554,11 @@ GAtMux *g_at_mux_new(GIOChannel *channel, const GAtMuxDriver *driver) { GAtMux *mux; - if (!channel) + if (channel == NULL) return NULL; mux = g_try_new0(GAtMux, 1); - if (!mux) + if (mux == NULL) return NULL; mux->ref_count = 1; |