From: Michael Jerris Date: Thu, 17 May 2007 17:28:35 +0000 (+0000) Subject: conditional expression is constant X-Git-Tag: v1.0.6~38^2~834 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27239d5f78b1f20acfe5d23f79265e96c7fc83ad;p=thirdparty%2Ffreeswitch.git conditional expression is constant git-svn-id: http://svn.openzap.org/svn/openzap/trunk@20 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/openzap/src/openzap.c b/libs/openzap/src/openzap.c index 533e820bc0..58341cdef9 100644 --- a/libs/openzap/src/openzap.c +++ b/libs/openzap/src/openzap.c @@ -74,9 +74,10 @@ static char *cut_path(char *in) static void null_logger(char *file, const char *func, int line, int level, char *fmt, ...) { - if (0) { - null_logger(file, func, line, level, fmt, fmt + sizeof(fmt)); + if (file && func && line && level && fmt) { + return; } + return; } static int zap_log_level = 7;