]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
clean this up, sorry my brain is not really working
authorJeff Peeler <jpeeler@digium.com>
Tue, 8 Feb 2011 19:28:58 +0000 (19:28 +0000)
committerJeff Peeler <jpeeler@digium.com>
Tue, 8 Feb 2011 19:28:58 +0000 (19:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@306964 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 89f108a64332568736633355199690790ded0620..4742eefd58490bd40467a0dd21b9e1d48cd3a6dc 100644 (file)
@@ -5234,17 +5234,15 @@ static int vm_forwardoptions(struct ast_channel *chan, struct ast_vm_user *vmu,
                        prepend_duration = 0;
 
                        /* Back up the original file, so we can retry the prepend */
+#ifndef IMAP_STORAGE
                        if (already_recorded) {
                                ast_filecopy(backup, msgfile, NULL);
-#ifndef IMAP_STORAGE
                                copy(textfile, backup_textfile);
-#endif
                        } else {
                                ast_filecopy(msgfile, backup, NULL);
-#ifndef IMAP_STORAGE
                                copy(textfile, backup_textfile);
-#endif
                        }
+#endif
                        already_recorded = 1;
 
                        if (record_gain)