diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 00:27:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 00:27:41 +0000 |
commit | cf67ae6727542678c4c23782af7c6418ec3290a7 (patch) | |
tree | 8ed30c45b4bc800f2110d6177e68ed6710951494 /apps/app_voicemail.c | |
parent | f4efe45a0353a1f7c893bcf1ef90ca34e9371286 (diff) |
restore count_messages for ODBC storage to proper behavior (bug #4711)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6132 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-x | apps/app_voicemail.c | 8 |
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) |