i dont know how msg_cfg got moved around but its all good again
authorMatt O'Gorman <mogorman@digium.com>
Tue, 12 Sep 2006 17:45:42 +0000 (17:45 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Tue, 12 Sep 2006 17:45:42 +0000 (17:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42842 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 8da1b40..dadc0b0 100644 (file)
@@ -7421,11 +7421,10 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s
        int res = 0;
 #ifdef IMAP_STORAGE
        char origtimeS[256],cidS[256],contextS[256];
        int res = 0;
 #ifdef IMAP_STORAGE
        char origtimeS[256],cidS[256],contextS[256];
-       char *header_content,*filename,*temp;
-#else
+       char *header_content,*temp;
+#endif
        char filename[256];
        struct ast_config *msg_cfg;
        char filename[256];
        struct ast_config *msg_cfg;
-#endif
        char *origtime, *cid, *context, *name, *num;
        int retries = 0;
 
        char *origtime, *cid, *context, *name, *num;
        int retries = 0;
 
@@ -7473,8 +7472,8 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s
                origtimeS[0] = '\0';
        
        origtime = &origtimeS[0];
                origtimeS[0] = '\0';
        
        origtime = &origtimeS[0];
-
-       filename = "IMAP_STORAGE";
+       
+       sprintf(filename,"IMAP_STORAGE");
 #else
        make_file(vms->fn, sizeof(vms->fn), vms->curdir, msg);
 
 #else
        make_file(vms->fn, sizeof(vms->fn), vms->curdir, msg);