Minor mailbox cleanups
authorMark Spencer <markster@digium.com>
Mon, 24 May 2004 00:26:46 +0000 (00:26 +0000)
committerMark Spencer <markster@digium.com>
Mon, 24 May 2004 00:26:46 +0000 (00:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3049 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index c30085e..cba6db4 100755 (executable)
@@ -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;
        }