summaryrefslogtreecommitdiff
path: root/lang/python24/files/patch-Objects::intobject.c
blob: 05983721a6cb314f4319e008c22ffa481ef52534 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -u python/dist/src/Objects/intobject.c:2.105 python/dist/src/Objects/intobject.c:2.105.8.1
--- Objects/intobject.c:2.105	Sat Jun 28 13:04:24 2003
+++ Objects/intobject.c	Sun Feb  8 10:56:07 2004
@@ -1080,7 +1080,7 @@
 	int ival;
 #if NSMALLNEGINTS + NSMALLPOSINTS > 0
 	for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) {
-		if ((free_list = fill_free_list()) == NULL)
+              if (!free_list && (free_list = fill_free_list()) == NULL)
 			return 0;
 		/* PyObject_New is inlined */
 		v = free_list;