[Asterisk-cvs] asterisk/apps app_txtcidname.c,1.4,1.5

citats at lists.digium.com citats at lists.digium.com
Fri Jul 2 15:38:26 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/home/citats/cvs/asterisk/apps

Modified Files:
	app_txtcidname.c 
Log Message:
Make app_txtcidname.c use ast_strlen_zero and cleanup the code a bit

Index: app_txtcidname.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_txtcidname.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- app_txtcidname.c	22 Jun 2004 19:32:52 -0000	1.4
+++ app_txtcidname.c	2 Jul 2004 19:24:16 -0000	1.5
@@ -65,11 +65,10 @@
 	LOCAL_USER_REMOVE(u);
 	/* Parse it out */
 	if (res > 0) {
-		if(strlen(txt) > 0)
-		{
+		if (!ast_strlen_zero(txt)) {
 			pbx_builtin_setvar_helper(chan, "TXTCIDNAME", txt);
 #if 0
-	printf("TXTCIDNAME got '%s'\n", txt);
+			ast_log(LOG_DEBUG, "TXTCIDNAME got '%s'\n", txt);
 #endif
 		}
 	}




More information about the svn-commits mailing list