From 521071a7853b225713606de3e0421e680f187709 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 27 Nov 2010 17:39:00 -0200 Subject: gatchat: explicitly compare pointers to NULL This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // --- gatchat/gatio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gatchat/gatio.c') diff --git a/gatchat/gatio.c b/gatchat/gatio.c index a9faba50..b65be86d 100644 --- a/gatchat/gatio.c +++ b/gatchat/gatio.c @@ -177,11 +177,11 @@ static GAtIO *create_io(GIOChannel *channel, GIOFlags flags) { GAtIO *io; - if (!channel) + if (channel == NULL) return NULL; io = g_try_new0(GAtIO, 1); - if (!io) + if (io == NULL) return io; io->ref_count = 1; -- cgit v1.2.3