Minor mailbox cleanups

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-05-24 00:26:46 +00:00
parent cf24f7ff7e
commit ba264f8158
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}