Index: trunk/ppStack/src/ppStackLoop.c
===================================================================
--- trunk/ppStack/src/ppStackLoop.c	(revision 18507)
+++ trunk/ppStack/src/ppStackLoop.c	(revision 18508)
@@ -15,4 +15,5 @@
 
 #define WCS_TOLERANCE 0.001             // Tolerance for WCS
+#define PIXELS_BUFFER 1024              // Initial size of pixel lists
 
 // Here follows lists of files for activation/deactivation at various stages.  Each must be NULL-terminated.
@@ -576,5 +577,5 @@
                 continue;
             }
-            psPixels *inspect = NULL;   // Inspection list for this readout
+            psPixels *inspect = psPixelsAllocEmpty(PIXELS_BUFFER); // Inspection list for this readout
             psMetadataIterator *iter = psMetadataIteratorAlloc(ro->analysis, PS_LIST_HEAD,
                                                                "^" PPSTACK_INSPECT_PIXELS "$"); // Iterator
@@ -592,6 +593,5 @@
             pmReadoutFreeData(ro);
 
-            psLogMsg("ppStack", PS_LOG_INFO, "%ld total pixels to inspect from image %d",
-                     inspect ? inspect->n : 0, i);
+            psLogMsg("ppStack", PS_LOG_INFO, "%ld total pixels to inspect from image %d", inspect->n, i);
 
             psPixels *reject = pmStackReject(inspect, NULL, threshold, subRegions->data[i],
