From 14f848bb22e88cac0010980e34caf11d00331740 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 5 Oct 2007 03:45:42 +0000 Subject: [PATCH] Backport 58330: 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 c96c503542..2c03ad6acf 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; } -- 2.40.0