Skip to content

Commit

Permalink
HPCC-29932 Avoid unusual crash for IF(cond,stmt) and cond is false
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Aug 9, 2023
1 parent e1d668d commit f8aca66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecl/hqlcpp/hqlcpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7923,7 +7923,7 @@ void HqlCppTranslator::doBuildStmtIf(BuildCtx & ctx, IHqlExpression * expr)
{
if (matchesConstValue(boundCond->queryExpr(), true))
buildStmt(ctx, trueExpr);
else
else if (falseExpr)
buildStmt(ctx, falseExpr);
return;
}
Expand Down

0 comments on commit f8aca66

Please sign in to comment.