From 39de1d92c5f257e49c97a4470d4748ca21fbc462 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 17 May 2007 17:28:35 +0000 Subject: [PATCH] conditional expression is constant git-svn-id: http://svn.openzap.org/svn/openzap/trunk@20 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/openzap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/freetdm/src/openzap.c b/libs/freetdm/src/openzap.c index 533e820bc0..58341cdef9 100644 --- a/libs/freetdm/src/openzap.c +++ b/libs/freetdm/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;