add memset to prevent race
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6052 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f13b77c820
commit
2afe124ff6
|
@ -1632,7 +1632,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, char
|
||||||
file_path = switch_mprintf("%s%smsg_%s.%s", dir_path, SWITCH_PATH_SEPARATOR, uuid, profile->file_ext);
|
file_path = switch_mprintf("%s%smsg_%s.%s", dir_path, SWITCH_PATH_SEPARATOR, uuid, profile->file_ext);
|
||||||
|
|
||||||
greet:
|
greet:
|
||||||
|
memset(buf, 0, sizeof(buf));
|
||||||
args.input_callback = cancel_on_dtmf;
|
args.input_callback = cancel_on_dtmf;
|
||||||
args.buf = buf;
|
args.buf = buf;
|
||||||
args.buflen = sizeof(buf);
|
args.buflen = sizeof(buf);
|
||||||
|
|
Loading…
Reference in New Issue