]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_voicemail: Fix compile breaking in app_voicemail with IMAP_STORAGE.
authorGeorge Joseph <george.joseph@fairview5.com>
Thu, 5 Mar 2015 16:35:22 +0000 (16:35 +0000)
committerGeorge Joseph <george.joseph@fairview5.com>
Thu, 5 Mar 2015 16:35:22 +0000 (16:35 +0000)
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

apps/app_voicemail.c

index a3d6cdbbe0c156babfc02dcfd000fe4353d3b4c2..24ddedd71debf1a4dca76633297de8dcfbc8e306 100644 (file)
@@ -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);