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
10-digiumphones
Matthew Jordan 13 years ago
parent 21d0df8e42
commit c2d84a5515

@ -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");

Loading…
Cancel
Save