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
This commit is contained in:
Tim Cava
2013-08-09 07:30:54 +00:00
parent 6691732900
commit 975bc2bc57

View File

@@ -396,7 +396,7 @@ char buffer[BIG_BUFFER_SIZE+1];
} }
modelock++; modelock++;
} }
if (chan && chan->have_op && buffer) if (chan && chan->have_op && *buffer)
send_to_server("MODE %s %s", chan->channel, buffer); send_to_server("MODE %s %s", chan->channel, buffer);
new_free(&save); new_free(&save);
new_free(&save1); new_free(&save1);