From: Anthony Minessale Date: Wed, 9 Sep 2015 18:53:49 +0000 (-0500) Subject: FS-1772 build err X-Git-Tag: v1.6.2~1^2~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d56c716c3f085c893fb7754db3b37a6b4847fce8;p=thirdparty%2Ffreeswitch.git FS-1772 build err --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 4991a2d46e..994ec33cce 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -2218,8 +2218,9 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p if (num < 0 || num > VM_MAX_GREETINGS) { status = SWITCH_STATUS_FALSE; } else if (num > 0) { - file_path = switch_mprintf("%s%sgreeting_%d.%s", dir_path, SWITCH_PATH_SEPARATOR, num, profile->file_ext); switch_file_handle_t fh = { 0 }; + + file_path = switch_mprintf("%s%sgreeting_%d.%s", dir_path, SWITCH_PATH_SEPARATOR, num, profile->file_ext); memset(&fh, 0, sizeof(fh)); greeting_args.input_callback = control_playback; memset(&cc, 0, sizeof(cc));