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
This commit is contained in:
parent
1b1efebf4b
commit
4afb2649b9
|
@ -3391,8 +3391,8 @@ static int conf_exec(struct ast_channel *chan, void *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!ast_strlen_zero(confno)) {
|
if (!ast_strlen_zero(confno)) {
|
||||||
char useropts[OPTIONS_LEN];
|
char useropts[OPTIONS_LEN] = "";
|
||||||
char adminopts[OPTIONS_LEN];
|
char adminopts[OPTIONS_LEN] = "";
|
||||||
/* Check the validity of the conference */
|
/* Check the validity of the conference */
|
||||||
cnf = find_conf(chan, confno, 1, dynamic, the_pin,
|
cnf = find_conf(chan, confno, 1, dynamic, the_pin,
|
||||||
sizeof(the_pin), 1, &confflags);
|
sizeof(the_pin), 1, &confflags);
|
||||||
|
|
Loading…
Reference in New Issue