]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 64758 via svnmerge from
authorJason Parker <jparker@digium.com>
Thu, 17 May 2007 16:53:27 +0000 (16:53 +0000)
committerJason Parker <jparker@digium.com>
Thu, 17 May 2007 16:53:27 +0000 (16:53 +0000)
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

apps/app_voicemail.c

index b6c538aabf5e7f7a5fa6f442f4bcc401295f849c..67aef04d76d41ea7934f70e558072364466cc92f 100644 (file)
@@ -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 {