From 775fda427ae473178678e2f9cc3deb79ea9e6800 Mon Sep 17 00:00:00 2001 From: qwell Date: Thu, 17 May 2007 16:52:38 +0000 Subject: If we have a negative current message, we shouldn't go back even further... Issue 9727. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64758 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index caa81a3fd..660498f7b 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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 { -- cgit v1.2.3