]> mj.ucw.cz Git - libucw.git/commitdiff
Fixed bug in parse_tree() causing the parser to loop forever on some inputs.
authorMartin Mares <mj@ucw.cz>
Thu, 10 Oct 2002 20:47:01 +0000 (20:47 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 10 Oct 2002 20:47:01 +0000 (20:47 +0000)
It's interesting excercise to find out why not on all inputs :-)

lib/perl/Query.pm

index 23d32e3b7c67e199ea600743bef5ddd8253ab169..b39b5ac0d9abcdcbc38fad953d1c6c502f82a7e4 100644 (file)
@@ -235,6 +235,7 @@ sub do_parse_tree($$$$) {
                        $i++;
                }
        }
+       return $i;
 }
 
 sub format_tree($$$) {