]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix compilation error introduced in r388815
authorMatthew Jordan <mjordan@digium.com>
Tue, 27 Aug 2013 14:58:31 +0000 (14:58 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 27 Aug 2013 14:58:31 +0000 (14:58 +0000)
r388815 didn't not cleanly apply the intended patch. As a result, app_voicemail
had a small issue in that it didn't compile. Whoops.

This patch pulls in the correct variable declarations such that gcc can figure
out what 'urgent_index' is all about.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@397704 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 82e8edfb0954d1b5eccafaf2673faa3c186582d6..3921a5b2812b84624a8df5be3efc3b1b924ea775 100644 (file)
@@ -14396,8 +14396,10 @@ static struct ast_vm_mailbox_snapshot *vm_mailbox_snapshot_create(const char *ma
        int i;
        int this_index_only = -1;
        int open = 0;
-       int inbox_index = 0;
-       int old_index = 1;
+       int inbox_index = get_folder_by_name("INBOX");
+       int old_index = get_folder_by_name("Old");
+       int urgent_index = get_folder_by_name("Urgent");
+
 
        if (ast_strlen_zero(mailbox)) {
                ast_log(LOG_WARNING, "Cannot create a mailbox snapshot since no mailbox was specified\n");