From: Jason Parker Date: Thu, 17 May 2007 16:53:27 +0000 (+0000) Subject: Merged revisions 64758 via svnmerge from X-Git-Tag: 1.4.5~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=954f082462b086788d22493ab50f771bdfbd6b7c;p=thirdparty%2Fasterisk.git Merged revisions 64758 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r64758 | qwell | 2007-05-17 11:52:38 -0500 (Thu, 17 May 2007) | 4 lines If we have a negative current message, we shouldn't go back even further... Issue 9727. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64761 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b6c538aabf..67aef04d76 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6563,7 +6563,7 @@ static int vm_execmain(struct ast_channel *chan, void *data) } break; case '4': - if (vms.curmsg) { + if (vms.curmsg > 0) { vms.curmsg--; cmd = play_message(chan, vmu, &vms); } else {