Index: trunk/Ohana/src/uniphot/src/cam_zpt_correction.c
===================================================================
--- trunk/Ohana/src/uniphot/src/cam_zpt_correction.c	(revision 40556)
+++ trunk/Ohana/src/uniphot/src/cam_zpt_correction.c	(revision 40557)
@@ -321,8 +321,9 @@
       isHSC  = TRUE;
     }
-    if (!(isGPC1) && !(isHSC)) { continue; }
-
-    int iy, ix, filter;
-
+    if (!isGPC1 && !isHSC) { continue; }
+
+    int iy = 0;
+    int ix = 0;
+    int filter = 1000;
     
     // find the chip and filter from photcode:
@@ -332,5 +333,5 @@
       filter = (int)(photcode / 100) % 10;
     }
-    else if (isHSC) {
+    if (isHSC) {
       iy = 0;
       ix = (int) photcode % 112;
