diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-05 03:41:19 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-05 03:41:19 (GMT) |
commit | 3adac217627fcd90fc82e3aaa3f141c8d8706324 (patch) | |
tree | 49de8e84f2371d0f099a5f4994c40ca320327064 /Python/ast.c | |
parent | c47cf7debe0e8fef840867a972bde1da6e752f0e (diff) | |
download | cpython-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.c | 2 |
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; } |