diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-02-28 07:10:22 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-02-28 07:10:22 +0000 |
commit | a6fd85250df68587f3042e49edbc515009f743b1 (patch) | |
tree | c865341b0d79b080d64a3eee897ec1a7cf9c51d0 /apps/app_voicemail.c | |
parent | 98154867e66c496e97cdd5f31f85650f3b8311f9 (diff) |
Properly document voicemail API documents. Also fix a crash reported via the -dev list.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@249405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 f49bf29b7..089a63a16 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5077,7 +5077,7 @@ static int copy_message(struct ast_channel *chan, struct ast_vm_user *vmu, int i static int messagecount(const char *context, const char *mailbox, const char *folder) { - return __has_voicemail(context, mailbox, folder, 0) + (strcmp(folder, "INBOX") ? 0 : __has_voicemail(context, mailbox, "Urgent", 0)); + return __has_voicemail(context, mailbox, folder, 0) + (folder && strcmp(folder, "INBOX") ? 0 : __has_voicemail(context, mailbox, "Urgent", 0)); } static int __has_voicemail(const char *context, const char *mailbox, const char *folder, int shortcircuit) |