aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-11 20:45:53 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-11 20:45:53 +0000
commit4951daf83ed1d796fd739cee10c44e702a6326db (patch)
treefc1ae1754cfc2ef905dd192146fe337097388635 /apps
parent3b30bdeca23b61b4af2c057677781754d43b79e0 (diff)
Issue 9947 - fn2 was unused / incorrectly used
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68781 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_directory.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index 5c1a71e3f..ea370d7db 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -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--) {