Commit 70431bf6 authored by Ralf Habacker's avatar Ralf Habacker

Coverity check CID 95917: Error handling issues (CHECKED_RETURN)

Calling "parseCondition" without checking return value.
parent 765439d2
......@@ -2771,7 +2771,9 @@ bool Parser::parseForEachStatement(StatementAST::Node& node)
ADVANCE(')', ")");
StatementAST::Node body;
if (!parseStatement(body)) {
reportError(i18n("statement expected"));
ForEachStatementAST::Node ast = CreateNode<ForEachStatementAST>();
// add here the parser results
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment