diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2976dfc6a1..e34ced8024 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6051,8 +6051,8 @@ static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu,int box) static int close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu) { int x = 0; - int last_msg_index; #ifndef IMAP_STORAGE + int last_msg_index; int res = 0, nummsg; #endif