From: Matthew Jordan Date: Tue, 27 Aug 2013 14:58:31 +0000 (+0000) Subject: Fix compilation error introduced in r388815 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d84a5515de376d35594010f166b633923815a2;p=thirdparty%2Fasterisk.git Fix compilation error introduced in r388815 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 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 82e8edfb09..3921a5b281 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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");