diff options
author | Jonathan Rose <jrose@digium.com> | 2014-09-05 19:39:04 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2014-09-05 19:39:04 +0000 |
commit | e19017fc00c80bedd39f1ce7c830b31193b88c6a (patch) | |
tree | b20ff5d78ddbc471b4ca1026481fc68e67a6585e /main/cli.c | |
parent | 5a1de68b9a2e0ae7b92c741d2d041e7f290899e7 (diff) |
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
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c index a519cbc49..f0eb30e33 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1579,6 +1579,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); |