From 3f16af5a44c6681da96a66c397c071185fdc857d Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Sat, 10 May 2003 18:47:57 +0000
Subject: [PATCH] Fix changing folders

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_voicemail2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 7243e2da3e..9ee29dfcca 100755
--- a/apps/app_voicemail2.c
+++ b/apps/app_voicemail2.c
@@ -1476,7 +1476,7 @@ static int get_folder2(struct ast_channel *chan, char *fn, int start)
 	int res = 0;
 	res = play_and_wait(chan, fn);
 	while (((res < '0') || (res > '9')) &&
-			(res != '#') && (res > 0)) {
+			(res != '#') && (res >= 0)) {
 		res = get_folder(chan, 0);
 	}
 	return res;
-- 
GitLab