Author: jrose
Date: Fri Sep  5 14:39:04 2014
New Revision: 422683

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=422683
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/
........

Merged revisions 422664 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 422665 from http://svn.asterisk.org/svn/asterisk/branches/13

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

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

Modified: trunk/main/cli.c
URL: 
http://svnview.digium.com/svn/asterisk/trunk/main/cli.c?view=diff&rev=422683&r1=422682&r2=422683
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Fri Sep  5 14:39:04 2014
@@ -1579,6 +1579,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);


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to