From 4336ec3e8bed1033efeaf84ed9ddf8d24183e45f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 30 Jun 2011 09:25:21 -0500 Subject: Fixed an infinite loop in the report query parser --- src/query.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/query.cc') diff --git a/src/query.cc b/src/query.cc index 5480336c..2a29a1e7 100644 --- a/src/query.cc +++ b/src/query.cc @@ -536,11 +536,13 @@ query_t::parser_t::parse_query_expr(lexer_t::token_t::kind_t tok_context, } default: - break; + goto done; } tok = lexer.peek_token(); } + done: + ; } return limiter; -- cgit v1.2.3