From: brain Date: Wed, 24 Oct 2007 15:07:24 +0000 (+0000) Subject: Theres no need to check the address of a stack declared array for NULL, thanks darix X-Git-Tag: v2.0.23~4355 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=beedfa3ce6601a70445d2f4a065ca6dd2876efa9;p=user%2Fhenk%2Fcode%2Finspircd.git Theres no need to check the address of a stack declared array for NULL, thanks darix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8340 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index cef990a71..46b152948 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -57,7 +57,7 @@ class ModuleAntiBottler : public Module } } // Bug Fix (#14) -- FCS - if (!(data) || !(*data)) + if (!*data) return 0; strtok(data," ");