Merged revisions 64761 via svnmerge from
authorJason Parker <jparker@digium.com>
Thu, 17 May 2007 16:54:35 +0000 (16:54 +0000)
committerJason Parker <jparker@digium.com>
Thu, 17 May 2007 16:54:35 +0000 (16:54 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r64761 | qwell | 2007-05-17 11:53:27 -0500 (Thu, 17 May 2007) | 12 lines

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/trunk@64762 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index c3b9610..b7caa66 100644 (file)
@@ -6767,7 +6767,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 {