summaryrefslogtreecommitdiff
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-06-04 18:00:24 +0000
committerJoshua Colp <jcolp@digium.com>2007-06-04 18:00:24 +0000
commitbae04fd90e03d975062b5f86588fedc748547add (patch)
tree5066cf648a673750db97edb5a161d47fdff25fa3 /apps/app_dial.c
parent6e6d4be830d67681b9033f26f1305e16218b373a (diff)
Merged revisions 67066 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67066 | file | 2007-06-04 13:59:14 -0400 (Mon, 04 Jun 2007) | 2 lines Initialize cidname variable to nothing since it may be used without having been touched. (issue #9661 reported by dimas) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index f8b5e0298..f713f3375 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -511,7 +511,7 @@ static void do_forward(struct chanlist *o,
senddialevent(in, c);
/* After calling, set callerid to extension */
if (!ast_test_flag(peerflags, OPT_ORIGINAL_CLID)) {
- char cidname[AST_MAX_EXTENSION];
+ char cidname[AST_MAX_EXTENSION] = "";
ast_set_callerid(c, S_OR(in->macroexten, in->exten), get_cid_name(cidname, sizeof(cidname), in), NULL);
}
/* Hangup the original channel now, in case we needed it */
@@ -1192,7 +1192,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
struct cause_args num = { chan, 0, 0, 0 };
int cause;
char numsubst[256];
- char cidname[AST_MAX_EXTENSION];
+ char cidname[AST_MAX_EXTENSION] = "";
struct ast_bridge_config config;
unsigned int calldurationlimit = 0;