]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If we have a negative current message, we shouldn't go back even further...
authorJason Parker <jparker@digium.com>
Thu, 17 May 2007 16:52:38 +0000 (16:52 +0000)
committerJason Parker <jparker@digium.com>
Thu, 17 May 2007 16:52:38 +0000 (16:52 +0000)
Issue 9727.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64758 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index caa81a3fd7ee10b2b9684bb7550221bc94e20467..660498f7b5955d9d3a361a6d59a993cc245af319 100644 (file)
@@ -5427,7 +5427,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 {