Index: /trunk/psphot/src/psphotMagnitudes.c
===================================================================
--- /trunk/psphot/src/psphotMagnitudes.c	(revision 5123)
+++ /trunk/psphot/src/psphotMagnitudes.c	(revision 5124)
@@ -1,6 +1,8 @@
 # include "psphot.h"
 
+// XXX EAM : this aperture correction business is invalid (& wrong) for galaxies
 pmModel *pmSourceMagnitudes (pmSource *source, pmPSF *psf, float apRadius) {
 
+    int status;
     float x, y;
     float sky, rflux, apMag, fitMag;
@@ -8,5 +10,5 @@
     // use the correct model (PSF vs FLT)
     pmModel *model = pmSourceSelectModel (source);
-    if (model == NULL) continue;
+    if (model == NULL) return NULL;
 
     x = source->peak->x;
@@ -46,5 +48,5 @@
 }
 
-pmModel *pmSourceSelectMode (pmSource *source) {
+pmModel *pmSourceSelectModel (pmSource *source) {
 
     pmModel *model;
