[asterisk-commits] file: branch 1.4 r82514 - /branches/1.4/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Sep 16 21:01:00 CDT 2007


Author: file
Date: Sun Sep 16 21:00:59 2007
New Revision: 82514

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82514
Log:
(closes issue #10734)
Reported by: asgaroth
Instead of passing a NULL pointer into snprintf pass "". It makes Solaris much happier.

Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/pbx.c?view=diff&rev=82514&r1=82513&r2=82514
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Sun Sep 16 21:00:59 2007
@@ -3480,7 +3480,7 @@
 	} else {
 		snprintf(buf, buflen, "%d. %s(%s)",
 			prio, ast_get_extension_app(e),
-			(char *)ast_get_extension_app_data(e));
+			(!ast_strlen_zero(ast_get_extension_app_data(e)) ? (char *)ast_get_extension_app_data(e) : ""));
 	}
 }
 




More information about the asterisk-commits mailing list