[Freeswitch-svn] [commit] r8444 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri May 16 13:18:57 EDT 2008


Author: mikej
Date: Fri May 16 13:18:57 2008
New Revision: 8444

Modified:
   freeswitch/trunk/src/switch_event.c

Log:
remove redundant null check. Found by Klockwork (www.klocwork.com)

Modified: freeswitch/trunk/src/switch_event.c
==============================================================================
--- freeswitch/trunk/src/switch_event.c	(original)
+++ freeswitch/trunk/src/switch_event.c	Fri May 16 13:18:57 2008
@@ -790,7 +790,7 @@
 			}
 		}
 
-		switch_snprintf(buf + len, dlen - len, "%s: %s\n", hp->name, switch_strlen_zero(encode_buf) ? "_undef_" : encode_buf);
+		switch_snprintf(buf + len, dlen - len, "%s: %s\n", hp->name, *encode_buf == '\0' ? "_undef_" : encode_buf);
 		len = strlen(buf);
 	}
 



More information about the Freeswitch-svn mailing list