Initialize character arrays as they are not guaranteed to be set.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@150309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.2
Jeff Peeler 17 years ago
parent 1b1efebf4b
commit 4afb2649b9

@ -3391,8 +3391,8 @@ static int conf_exec(struct ast_channel *chan, void *data)
}
}
if (!ast_strlen_zero(confno)) {
char useropts[OPTIONS_LEN];
char adminopts[OPTIONS_LEN];
char useropts[OPTIONS_LEN] = "";
char adminopts[OPTIONS_LEN] = "";
/* Check the validity of the conference */
cnf = find_conf(chan, confno, 1, dynamic, the_pin,
sizeof(the_pin), 1, &confflags);

Loading…
Cancel
Save