[asterisk-commits] tilghman: branch 1.4 r277261 - /branches/1.4/main/manager.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 16 13:04:16 CDT 2010
Author: tilghman
Date: Fri Jul 16 13:04:11 2010
New Revision: 277261
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=277261
Log:
If variable gotten is not set, will segfault on Solaris.
(closes issue #17636)
Reported by: bklang
Modified:
branches/1.4/main/manager.c
Modified: branches/1.4/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/manager.c?view=diff&rev=277261&r1=277260&r2=277261
==============================================================================
--- branches/1.4/main/manager.c (original)
+++ branches/1.4/main/manager.c Fri Jul 16 13:04:11 2010
@@ -1592,7 +1592,7 @@
if (c)
ast_channel_unlock(c);
astman_append(s, "Response: Success\r\n"
- "Variable: %s\r\nValue: %s\r\n", varname, varval);
+ "Variable: %s\r\nValue: %s\r\n", varname, S_OR(varval, ""));
if (!ast_strlen_zero(id))
astman_append(s, "ActionID: %s\r\n",id);
astman_append(s, "\r\n");
More information about the asterisk-commits
mailing list