aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-04 17:59:14 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-04 17:59:14 +0000
commitaa2dcddfae922a7bcdac32f1de88a596c9c52f58 (patch)
treeeb4888400edd1f07ff8ce7d7d09599b9fe348af4 /apps
parent977074e966942456e28c73ec2d6a6468ab407e02 (diff)
Initialize cidname variable to nothing since it may be used without having been touched. (issue #9661 reported by dimas)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67066 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 fdf24cc71..67449aee9 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -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;