diff options
author | Matthew Fredrickson <creslin@digium.com> | 2006-09-19 21:07:49 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2006-09-19 21:07:49 +0000 |
commit | 33ddb536631cb9b46dc63923dbf79ead8db89186 (patch) | |
tree | cf83670bfa579bddec4a254d9f6fc45e2a8a7829 /apps/app_voicemail.c | |
parent | fc60c151d3c49897088c148ea01304701b40c2a2 (diff) |
Various updates from PCadach's chan_h323-live branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4e605e917..99e51f23b 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4607,12 +4607,15 @@ 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; +#ifndef IMAP_STORAGE + int res = 0, nummsg; +#endif + if (vms->lastmsg <= -1) goto done; vms->curmsg = -1; #ifndef IMAP_STORAGE - int res = 0, nummsg; /* Get the deleted messages fixed */ if (vm_lock_path(vms->curdir)) return ERROR_LOCK_PATH; |