summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-07-15 00:27:41 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-07-15 00:27:41 +0000
commitdcfabce0e457430a96412e45701c6b0ac6bd6903 (patch)
tree8ed30c45b4bc800f2110d6177e68ed6710951494 /apps
parent86e17a7487bc98edd1bbe31c6a140a25fe766e05 (diff)
restore count_messages for ODBC storage to proper behavior (bug #4711)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index ab8c89716..a20bf730a 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -992,15 +992,9 @@ yuck:
return x;
}
-/*
- * A negative return value indicates an error.
- */
static int count_messages(struct ast_vm_user *vmu, char *dir)
{
- int res;
-
- res = last_message_index(vmu, dir);
- return res >= 0 ? res + 1 : res;
+ return last_message_index(vmu, dir) + 1;
}
static void delete_file(char *sdir, int smsg)