[Asterisk-cvs] asterisk frame.c,1.30,1.31

citats at lists.digium.com citats at lists.digium.com
Sun May 9 03:42:10 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv28353

Modified Files:
	frame.c 
Log Message:
More ast_strlen_zero changes


Index: frame.c
===================================================================
RCS file: /usr/cvsroot/asterisk/frame.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- frame.c	28 Apr 2004 17:54:01 -0000	1.30
+++ frame.c	9 May 2004 07:51:43 -0000	1.31
@@ -17,6 +17,7 @@
 #include <asterisk/options.h>
 #include <asterisk/cli.h>
 #include <asterisk/term.h>
+#include <asterisk/utils.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
@@ -703,7 +704,7 @@
 	default:
 		snprintf(ftype, sizeof(ftype), "Unknown Frametype '%d'", f->frametype);
 	}
-	if (strlen(moreinfo))
+	if (!ast_strlen_zero(moreinfo))
 		ast_verbose("%s [ TYPE: %s (%d) SUBCLASS: %s (%d) '%s' ] [%s]\n",  
 			term_color(cp, prefix, COLOR_BRMAGENTA, COLOR_BLACK, sizeof(cp)),
 			term_color(cft, ftype, COLOR_BRRED, COLOR_BLACK, sizeof(cft)),




More information about the svn-commits mailing list