summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 7286a7bd6..92fc41d8b 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -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) {