Backport 58330:

Fix Coverity #158: Check the correct variable.
This commit is contained in:
Neal Norwitz 2007-10-05 03:45:42 +00:00
parent 0ac4b27be8
commit 14f848bb22
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}