diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-11 01:15:15 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-12-11 01:15:15 +0000 |
commit | 5595f77ea2db3901b9e5619c20e35da79c548efa (patch) | |
tree | 79ed0ea2c6ddf9514af8696d18c0d55a3e18371a /apps/app_voicemail.c | |
parent | 2f16f0b5118bced8ee5f8fdb1163256ef180e437 (diff) |
Bug 5967
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7427 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 40cca00f0..437b5759d 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -582,7 +582,7 @@ static struct ast_vm_user *find_user(struct ast_vm_user *ivm, const char *contex while (cur) { if (ast_test_flag((&globalflags), VM_SEARCH) && !strcasecmp(mailbox, cur->mailbox)) break; - if ((!strcasecmp(context, cur->context)) && (!strcasecmp(mailbox, cur->mailbox))) + if (context && (!strcasecmp(context, cur->context)) && (!strcasecmp(mailbox, cur->mailbox))) break; cur=cur->next; } |