diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-05 03:45:42 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-05 03:45:42 (GMT) |
commit | 14f848bb22e88cac0010980e34caf11d00331740 (patch) | |
tree | 20d8193001af80ff6566c0874d73057ec1a07981 /Python/ast.c | |
parent | 0ac4b27be8125290060b2fd15555e03931f13c89 (diff) | |
download | cpython-14f848bb22e88cac0010980e34caf11d00331740.zip cpython-14f848bb22e88cac0010980e34caf11d00331740.tar.gz cpython-14f848bb22e88cac0010980e34caf11d00331740.tar.bz2 |
Backport 58330:
Fix Coverity #158: Check the correct variable.
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index c96c503..2c03ad6 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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; } |