]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-1772 build err
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Sep 2015 18:53:49 +0000 (13:53 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 9 Sep 2015 18:54:03 +0000 (13:54 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 4991a2d46eabd61994029c2c786274f5b350b22f..994ec33cceb98b6657d42f98ec0da54c795935f1 100644 (file)
@@ -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));