[Zope-Checkins] CVS: Zope2 - SetOpTemplate.c:1.3.2.3

Jim Fulton jim@digiciool.com
Mon, 12 Mar 2001 12:05:27 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/BTrees
In directory korak:/tmp/cvs-serv28385

Modified Files:
      Tag: Catalog-BTrees-Integration
	SetOpTemplate.c 
Log Message:
Fixed bug in output data allocation that caused core dumps. 



--- Updated File SetOpTemplate.c in package Zope2 --
--- SetOpTemplate.c	2001/03/12 16:26:49	1.3.2.2
+++ SetOpTemplate.c	2001/03/12 17:05:26	1.3.2.3
@@ -330,7 +330,7 @@
 	{
 	  if(c2)
 	    {
-	      if(r->len >= r->size && Bucket_grow(r,1) < 0) goto err;
+	      if(r->len >= r->size && Bucket_grow(r, ! merge) < 0) goto err;
               COPY_KEY(r->keys[r->len], i2.key);
               INCREF_KEY(r->keys[r->len]);
               if (merge)