From: Anthony Minessale Date: Thu, 25 Oct 2007 17:49:42 +0000 (+0000) Subject: add memset to prevent race X-Git-Tag: v1.0-beta2~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e33ce052dbb2b69d7d45d84a6436bf712742b1e;p=thirdparty%2Ffreeswitch.git add memset to prevent race git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6053 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index b494da2d81..d0eaae768b 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1651,10 +1651,12 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, char } } - if (!strcasecmp(buf, profile->main_menu_key)) { - voicemail_check_main(session, profile_name, domain_name, id, 0); - } else { - goto greet; + if (!switch_strlen_zero(buf)) { + if (!strcasecmp(buf, profile->main_menu_key)) { + voicemail_check_main(session, profile_name, domain_name, id, 0); + } else { + goto greet; + } }