]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix changing folders
authorMark Spencer <markster@digium.com>
Sat, 10 May 2003 18:47:57 +0000 (18:47 +0000)
committerMark Spencer <markster@digium.com>
Sat, 10 May 2003 18:47:57 +0000 (18:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@992 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail2.c

index 7243e2da3ee6dd0685eee2910ff6dfee17ea7242..9ee29dfccaf751a5ba92e8b2a88e3f980e85ffe5 100755 (executable)
@@ -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;