Index: trunk/psphot/src/psphotBasicDeblend.c
===================================================================
--- trunk/psphot/src/psphotBasicDeblend.c	(revision 6862)
+++ trunk/psphot/src/psphotBasicDeblend.c	(revision 6900)
@@ -25,4 +25,5 @@
     // we use an index for this so the spatial sorting is kept
     psVector *SN = psVectorAlloc (sources->n, PS_DATA_F32);
+    SN->n = SN->nalloc;
     for (int i = 0; i < SN->n; i++) {
 	source = sources->data[i];
@@ -40,8 +41,4 @@
 
 	// temporary array for overlapping objects we find
-	// XXX psArrayAlloc should set ->n to 0 *and* all objects to NULL
-	// XXX I need a psArrayEmpty function to free the elements without the array
-	// XXX then, I could allocate 'overlap' once outside the loop and only
-	// XXX clear at the end of each loop
 	psArray *overlap = psArrayAlloc (100);
 	overlap->n = 0;
@@ -117,5 +114,4 @@
 		    source->blends->n = 0;
 		}
-
 		psArrayAdd (source->blends, 16, testSource);
 
