[asterisk-commits] tilghman: branch 1.4 r68781 - /branches/1.4/apps/app_directory.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jun 11 13:45:54 MST 2007


Author: tilghman
Date: Mon Jun 11 15:45:53 2007
New Revision: 68781

URL: http://svn.digium.com/view/asterisk?view=rev&rev=68781
Log:
Issue 9947 - fn2 was unused / incorrectly used

Modified:
    branches/1.4/apps/app_directory.c

Modified: branches/1.4/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_directory.c?view=diff&rev=68781&r1=68780&r2=68781
==============================================================================
--- branches/1.4/apps/app_directory.c (original)
+++ branches/1.4/apps/app_directory.c Mon Jun 11 15:45:53 2007
@@ -265,9 +265,6 @@
 	int res = 0;
 	int loop;
 	char fn[256];
-#ifdef ODBC_STORAGE
-	char fn2[256];
-#endif
 
 	/* Check for the VoiceMail2 greeting first */
 	snprintf(fn, sizeof(fn), "%s/voicemail/%s/%s/greet",
@@ -282,7 +279,7 @@
 			ast_config_AST_SPOOL_DIR, ext);
 	}
 #ifdef ODBC_STORAGE
-	retrieve_file(fn2);
+	retrieve_file(fn);
 #endif
 
 	if (ast_fileexists(fn, NULL, chan->language) > 0) {
@@ -302,7 +299,6 @@
 	}
 #ifdef ODBC_STORAGE
 	ast_filedelete(fn, NULL);	
-	ast_filedelete(fn2, NULL);	
 #endif
 
 	for (loop = 3 ; loop > 0; loop--) {



More information about the asterisk-commits mailing list