From: Jonathan Rose Date: Fri, 5 Sep 2014 17:46:14 +0000 (+0000) Subject: Call IDs: Fix appearance of call ID in core show channels when NULL X-Git-Tag: 12.6.0-rc1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f95b3281767ff31eb8e777459629edab4dcc061;p=thirdparty%2Fasterisk.git 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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@422664 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 8735fff8d0..9962263188 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1576,6 +1576,7 @@ static char *handle_showchan(struct ast_cli_entry *e, int cmd, struct ast_cli_ar 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);