From ba264f8158b7b8e61cbd89107e0e5a06b2e5ba40 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Mon, 24 May 2004 00:26:46 +0000 Subject: [PATCH] Minor mailbox cleanups git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3049 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index c30085ed1c..cba6db47e7 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3426,9 +3426,8 @@ static int vm_box_exists(struct ast_channel *chan, void *data) { struct ast_vm_user *vmu; struct ast_vm_user svm; char *context, *box; - int branch=0; - if (!data) { + if (!data || !strlen(data)) { ast_log(LOG_ERROR, "MailboxExists requires an argument: (vmbox[@context])\n"); return -1; } -- 2.47.2