summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-10-05 03:41:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-10-05 03:41:19 (GMT)
commit3adac217627fcd90fc82e3aaa3f141c8d8706324 (patch)
tree49de8e84f2371d0f099a5f4994c40ca320327064 /Python/ast.c
parentc47cf7debe0e8fef840867a972bde1da6e752f0e (diff)
downloadcpython-3adac217627fcd90fc82e3aaa3f141c8d8706324.zip
cpython-3adac217627fcd90fc82e3aaa3f141c8d8706324.tar.gz
cpython-3adac217627fcd90fc82e3aaa3f141c8d8706324.tar.bz2
Fix Coverity #158: Check the correct variable.
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 956ee20..525b5a6 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1468,7 +1468,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;
}