Commit 14f848bb authored by Neal Norwitz's avatar Neal Norwitz

Backport 58330:

Fix Coverity #158: Check the correct variable.
parent 0ac4b27b
......@@ -1445,7 +1445,7 @@ ast_for_binop(struct compiling *c, const node *n)
tmp_result = BinOp(result, newoperator, tmp,
LINENO(next_oper), next_oper->n_col_offset,
c->c_arena);
if (!tmp)
if (!tmp_result)
return NULL;
result = tmp_result;
}
......
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