diff Python/ast.c @ 43470:995677219a65 legacy-trunk

Fix Coverity #158: Check the correct variable.
author Neal Norwitz <nnorwitz@gmail.com>
date Fri, 05 Oct 2007 03:41:19 +0000
parents dbfc3cf1522d
children 5f6a8e2b9e9c
line wrap: on
line diff
--- a/Python/ast.c	Fri Oct 05 03:39:17 2007 +0000
+++ b/Python/ast.c	Fri Oct 05 03:41:19 2007 +0000
@@ -1468,7 +1468,7 @@
                 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;
         }