From 112632bb4ecfc54dba6346c1a9c3af9861c6a74b Mon Sep 17 00:00:00 2001 From: TingPing Date: Wed, 31 Dec 2014 11:12:43 -0500 Subject: Fix some possible null-deref warnings --- src/common/hexchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/hexchat.c') diff --git a/src/common/hexchat.c b/src/common/hexchat.c index 71ea9791..fdae21d0 100644 --- a/src/common/hexchat.c +++ b/src/common/hexchat.c @@ -220,7 +220,7 @@ find_channel (server *serv, char *chan) while (list) { sess = list->data; - if ((!serv || serv == sess->server) && sess->type == SESS_CHANNEL) + if ((serv == sess->server) && sess->type == SESS_CHANNEL) { if (!serv->p_cmp (chan, sess->channel)) return sess; -- cgit 1.4.1