Index: trunk/psphot/src/psphotApResid.c
===================================================================
--- trunk/psphot/src/psphotApResid.c	(revision 14963)
+++ trunk/psphot/src/psphotApResid.c	(revision 14965)
@@ -294,4 +294,6 @@
     psFree (psf->ApTrend);
     psf->ApTrend = pmTrend2DAlloc (PM_TREND_MAP, readout->image, Nx, Ny, stats);
+
+    // XXX test for errors here
     pmTrend2DFit (psf->ApTrend, mask, 0xff, xPos, yPos, apResid, dMag);
     
