And actually assign the function to a pointer...
authorMark Michelson <mmichelson@digium.com>
Wed, 17 Dec 2008 17:53:37 +0000 (17:53 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 17 Dec 2008 17:53:37 +0000 (17:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165143 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 7286a7b..92fc41d 100644 (file)
@@ -1756,7 +1756,7 @@ static int messagecount(const char *context, const char *mailbox, const char *fo
        }
 
        if (!vms_p) {
-               create_vm_state_from_user(vmu);
+               vms_p = create_vm_state_from_user(vmu);
        }
        ret = init_mailstream(vms_p, fold);
        if (!vms_p->mailstream) {