From 27239d5f78b1f20acfe5d23f79265e96c7fc83ad Mon Sep 17 00:00:00 2001
From: Michael Jerris <mike@jerris.com>
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/openzap/src/openzap.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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;