[asterisk-commits] file: trunk r82516 - in /trunk: ./ main/pbx.c

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


Author: file
Date: Sun Sep 16 21:02:09 2007
New Revision: 82516

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82516
Log:
Merged revisions 82514 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82514 | file | 2007-09-16 23:00:59 -0300 (Sun, 16 Sep 2007) | 4 lines

(closes issue #10734)
Reported by: asgaroth
Instead of passing a NULL pointer into snprintf pass "". It makes Solaris much happier.

........

Modified:
    trunk/   (props changed)
    trunk/main/pbx.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=82516&r1=82515&r2=82516
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Sun Sep 16 21:02:09 2007
@@ -3329,7 +3329,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