Index: trunk/psModules/src/objects/pmSourcePhotometry.c
===================================================================
--- trunk/psModules/src/objects/pmSourcePhotometry.c	(revision 10094)
+++ trunk/psModules/src/objects/pmSourcePhotometry.c	(revision 11527)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA; GLG, MHPCC
  *
- *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-11-20 05:23:23 $
+ *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-02-01 03:15:13 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -478,7 +478,5 @@
                       const bool unweighted_sum) // should the cross product be weighted?
 {
-
-    int xi, yi;
-    double flux, wt, factor;
+    double flux = 0, wt = 0, factor = 0;
 
     const psImage *Pi = Mi->pixels;
@@ -488,7 +486,6 @@
     // note that this is addressing the same image pixels,
     // though only if both are source not model images
-    flux = 0;
-    for (yi = 0; yi < Pi->numRows; yi++) {
-        for (xi = 0; xi < Pi->numCols; xi++) {
+    for (int yi = 0; yi < Pi->numRows; yi++) {
+        for (int xi = 0; xi < Pi->numCols; xi++) {
             if (Ti->data.U8[yi][xi])
                 continue;
