From: Neal Norwitz Date: Fri, 5 Oct 2007 03:41:19 +0000 (+0000) Subject: Fix Coverity #158: Check the correct variable. X-Git-Tag: v2.6a1~1226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3adac217627fcd90fc82e3aaa3f141c8d8706324;p=thirdparty%2FPython%2Fcpython.git Fix Coverity #158: Check the correct variable. --- diff --git a/Python/ast.c b/Python/ast.c index 956ee205e93e..525b5a66f30f 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; }