summaryrefslogtreecommitdiff
path: root/src/query.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-06-30 09:25:21 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-06-30 09:25:21 -0500
commit4336ec3e8bed1033efeaf84ed9ddf8d24183e45f (patch)
tree2e0918f51ac7962f6f53e4279af6046cc091dc8e /src/query.cc
parent11a9063958ea84293fd74243a5391c0de20f3951 (diff)
downloadfork-ledger-4336ec3e8bed1033efeaf84ed9ddf8d24183e45f.tar.gz
fork-ledger-4336ec3e8bed1033efeaf84ed9ddf8d24183e45f.tar.bz2
fork-ledger-4336ec3e8bed1033efeaf84ed9ddf8d24183e45f.zip
Fixed an infinite loop in the report query parser
Diffstat (limited to 'src/query.cc')
-rw-r--r--src/query.cc4
1 files changed, 3 insertions, 1 deletions
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;