[asterisk-commits] jpeeler: branch 1.4 r306964 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 8 13:29:02 CST 2011


Author: jpeeler
Date: Tue Feb  8 13:28:58 2011
New Revision: 306964

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=306964
Log:
clean this up, sorry my brain is not really working

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=306964&r1=306963&r2=306964
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Tue Feb  8 13:28:58 2011
@@ -5234,17 +5234,15 @@
 			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
-			}
 			already_recorded = 1;
 
 			if (record_gain)




More information about the asterisk-commits mailing list