From: Neal Norwitz Date: Fri, 5 Oct 2007 03:45:42 +0000 (+0000) Subject: Backport 58330: X-Git-Tag: v2.5.2c1~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14f848bb22e88cac0010980e34caf11d00331740;p=thirdparty%2FPython%2Fcpython.git Backport 58330: Fix Coverity #158: Check the correct variable. --- diff --git a/Python/ast.c b/Python/ast.c index c96c5035425a..2c03ad6acf58 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; }