[Python-checkins] r58331 - python/branches/release25-maint/Python/ast.c

neal.norwitz python-checkins at python.org
Fri Oct 5 05:45:43 CEST 2007


Author: neal.norwitz
Date: Fri Oct  5 05:45:42 2007
New Revision: 58331

Modified:
   python/branches/release25-maint/Python/ast.c
Log:
Backport 58330:
Fix Coverity #158: Check the correct variable.


Modified: python/branches/release25-maint/Python/ast.c
==============================================================================
--- python/branches/release25-maint/Python/ast.c	(original)
+++ python/branches/release25-maint/Python/ast.c	Fri Oct  5 05:45:42 2007
@@ -1445,7 +1445,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;
 	}


More information about the Python-checkins mailing list