From 3adac217627fcd90fc82e3aaa3f141c8d8706324 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 5 Oct 2007 03:41:19 +0000 Subject: [PATCH] Fix Coverity #158: Check the correct variable. --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ast.c b/Python/ast.c index 956ee205e93..525b5a66f30 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; }