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/branches/1.4@67066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-06-04 17:59:14 +00:00
parent 26038a4b77
commit 1317920054

View File

@@ -549,7 +549,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l
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);
}
}
@@ -794,7 +794,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
int numnochan = 0;
int cause;
char numsubst[256];
char cidname[AST_MAX_EXTENSION];
char cidname[AST_MAX_EXTENSION] = "";
int privdb_val = 0;
unsigned int calldurationlimit = 0;
long timelimit = 0;