From 810b9a0adcb5c40789de4783824d9a1352a21e05 Mon Sep 17 00:00:00 2001 From: stan Date: Sat, 15 Jan 2005 18:47:57 +0000 Subject: [PATCH] Added when no debug log. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1214 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_debug.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/zm_debug.c b/src/zm_debug.c index 642181ea7..3716593c6 100644 --- a/src/zm_debug.c +++ b/src/zm_debug.c @@ -76,9 +76,6 @@ int zmGetDebugEnv() char buffer[128]; char *env_ptr; - /* zm_dbg_level = 0; */ - /* zm_dbg_log[0] = '\0'; */ - env_ptr = getenv( "ZM_DBG_PRINT" ); if ( env_ptr == (char *)NULL ) { @@ -213,7 +210,7 @@ int zmDebugInitialise( const char *name, const char *id, int level ) Error(("fopen() for %s, error = %s",zm_dbg_log,strerror(errno))); return(ZM_DBG_ERROR); } - Info(("Debug Level = %d, Debug Log = %s",zm_dbg_level,zm_dbg_log)); + Info(( "Debug Level = %d, Debug Log = %s", zm_dbg_level,zm_dbg_log[0]?zm_dbg_log:"" )); { struct sigaction action, old_action;