[svn-commits] jrose: branch 12 r422664 - /branches/12/main/cli.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Sep 5 12:46:17 CDT 2014


Author: jrose
Date: Fri Sep  5 12:46:14 2014
New Revision: 422664

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=422664
Log:
Call IDs: Fix appearance of call ID in core show channels when NULL

NULL call IDs were meant to appear as '(none)' but instead were showing
the contents of an uninitialized character buffer.

ASTERISK-24223
Review: https://reviewboard.asterisk.org/r/3979/

Modified:
    branches/12/main/cli.c

Modified: branches/12/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/cli.c?view=diff&rev=422664&r1=422663&r2=422664
==============================================================================
--- branches/12/main/cli.c (original)
+++ branches/12/main/cli.c Fri Sep  5 12:46:14 2014
@@ -1576,6 +1576,7 @@
 	ast_translate_path_to_str(ast_channel_readtrans(chan), &read_transpath);
 
 	bridge = ast_channel_get_bridge(chan);
+	callid_buf[0] = '\0';
 	callid = ast_channel_callid(chan);
 	if (callid) {
 		ast_callid_strnprint(callid_buf, sizeof(callid_buf), callid);




More information about the svn-commits mailing list