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
This commit is contained in:
Kevin P. Fleming
2005-07-15 00:27:41 +00:00
parent 86e17a7487
commit dcfabce0e4

View File

@@ -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)