summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-10-05 03:45:42 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-10-05 03:45:42 +0000
commit14f848bb22e88cac0010980e34caf11d00331740 (patch)
tree20d8193001af80ff6566c0874d73057ec1a07981 /Python
parent0ac4b27be8125290060b2fd15555e03931f13c89 (diff)
downloadcpython-git-14f848bb22e88cac0010980e34caf11d00331740.tar.gz
Backport 58330:
Fix Coverity #158: Check the correct variable.
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index c96c503542..2c03ad6acf 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;
}