Index: trunk/psphot/src/psphotApResid.c
===================================================================
--- trunk/psphot/src/psphotApResid.c	(revision 10310)
+++ trunk/psphot/src/psphotApResid.c	(revision 10555)
@@ -314,5 +314,5 @@
         if (! mask->data.U8[i]) Nkeep ++;
     }
-    residStats  = psVectorStats (residStats, resid, NULL, mask, 0x03);
+    psVectorStats (residStats, resid, NULL, mask, 0x03);
 
     // apply ApTrend results
