[asterisk-commits] oej: branch oej/minivoicemail r58700 - /team/oej/minivoicemail/apps/app_minivm.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Mar 10 06:40:15 MST 2007


Author: oej
Date: Sat Mar 10 07:40:14 2007
New Revision: 58700

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58700
Log:
Check if file exists correctly

Modified:
    team/oej/minivoicemail/apps/app_minivm.c

Modified: team/oej/minivoicemail/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/team/oej/minivoicemail/apps/app_minivm.c?view=diff&rev=58700&r1=58699&r2=58700
==============================================================================
--- team/oej/minivoicemail/apps/app_minivm.c (original)
+++ team/oej/minivoicemail/apps/app_minivm.c Sat Mar 10 07:40:14 2007
@@ -2021,7 +2021,7 @@
 
 	/* Go ahead and delete audio files from system, they're not needed any more */
 	/* We should look for both audio and text files here */
-	if (ast_fileexists(filename, NULL, NULL) < 0) {
+	if (ast_fileexists(filename, NULL, NULL) > 0) {
 		res = vm_delete(filename);
 		if (res) {
 			if (option_debug > 1)



More information about the asterisk-commits mailing list