Commit 765439d2 authored by Ralf Habacker's avatar Ralf Habacker

Coverity check CID 95919: Error handling issues (CHECKED_RETURN)

Calling "parseStatement" without checking return value.
parent 7c96a1b9
......@@ -2741,7 +2741,9 @@ bool Parser::parseForStatement(StatementAST::Node& node)
ADVANCE(')', ")");
StatementAST::Node body;
if (!parseStatement(body)) {
reportError(i18n("statement expected"));
ForStatementAST::Node ast = CreateNode<ForStatementAST>();
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