aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index b6c538aab..67aef04d7 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 {