]> granicus.if.org Git - python/commitdiff
Fix Coverity #158: Check the correct variable.
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 5 Oct 2007 03:41:19 +0000 (03:41 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 5 Oct 2007 03:41:19 +0000 (03:41 +0000)
Python/ast.c

index 956ee205e93ecc9aec84c63278cce5be0be55845..525b5a66f30f2beba51aae7fe28251e7b1261a8e 100644 (file)
@@ -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;
         }