From 975bc2bc57b33b5f48382048c6938bdaac9ddd7a Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Fri, 9 Aug 2013 07:30:54 +0000 Subject: [PATCH] Don't compare an array to NULL, but check that the first character isn't NULL. Found by Coverity. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@308 13b04d17-f746-0410-82c6-800466cd88b0 --- source/commands2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/commands2.c b/source/commands2.c index 20cde2a..344134b 100644 --- a/source/commands2.c +++ b/source/commands2.c @@ -396,7 +396,7 @@ char buffer[BIG_BUFFER_SIZE+1]; } modelock++; } - if (chan && chan->have_op && buffer) + if (chan && chan->have_op && *buffer) send_to_server("MODE %s %s", chan->channel, buffer); new_free(&save); new_free(&save1);