]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue 9947 - fn2 was unused / incorrectly used
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 11 Jun 2007 20:45:53 +0000 (20:45 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 11 Jun 2007 20:45:53 +0000 (20:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68781 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_directory.c

index 5c1a71e3f3944be429a32759f7374d85e0ab35d9..ea370d7db01da984033205b335ea448c97c30d8c 100644 (file)
@@ -265,9 +265,6 @@ static int play_mailbox_owner(struct ast_channel *chan, char *context,
        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 @@ static int play_mailbox_owner(struct ast_channel *chan, char *context,
                        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 @@ static int play_mailbox_owner(struct ast_channel *chan, char *context,
        }
 #ifdef ODBC_STORAGE
        ast_filedelete(fn, NULL);       
-       ast_filedelete(fn2, NULL);      
 #endif
 
        for (loop = 3 ; loop > 0; loop--) {