From: George Joseph Date: Thu, 5 Mar 2015 16:35:22 +0000 (+0000) Subject: app_voicemail: Fix compile breaking in app_voicemail with IMAP_STORAGE. X-Git-Tag: 11.17.0-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0dc90c5b8173da895a40028ebe35669e6eafdee;p=thirdparty%2Fasterisk.git app_voicemail: Fix compile breaking in app_voicemail with IMAP_STORAGE. There is a leftover "assert" in app_voicemail/__messagecount that references variables that don't exist. This causes the compile to fail when --enable-dev-mode and IMAP_STORAGE are selected. This patch removes the assert. Tested-by: George Joseph Review: https://reviewboard.asterisk.org/r/4461/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@432484 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a3d6cdbbe0..24ddedd71d 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2358,7 +2358,6 @@ static int __messagecount(const char *context, const char *mailbox, const char * free_user(vmu); return -1; } - ast_assert(msgnum < vms->msg_array_max); /* check if someone is accessing this box right now... */ vms_p = get_vm_state_by_imapuser(vmu->imapuser, 1);