Index: trunk/Ohana/src/opihi/cmd.astro/fiximage.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/fiximage.c	(revision 33693)
+++ trunk/Ohana/src/opihi/cmd.astro/fiximage.c	(revision 33700)
@@ -34,18 +34,18 @@
   // 4 -- repair y only
   // 6 -- repair x & y only
-  
+
   float *inB = (float *) in[0].matrix.buffer;
   float *ctB = (float *) ct[0].matrix.buffer;
   float *mkB = (float *) mask[0].matrix.buffer;
 
-  // loop over input ct and find pixels that can be repaired. 
+  // loop over input ct and find pixels that can be repaired.
   for (iy = 1; iy < Ny - 1; iy++) {
     for (ix = 1; ix < Nx - 1; ix++) {
-      
+
       int Npix = ix + Nx*iy;
 
       // does not need to be repaired
       if (ctB[Npix]) { mkB[Npix] = 1.0; continue; }
-      
+
       // if we have all 4 valid neighbors, we can fix
       if (ctB[Npix - 1 ] && ctB[Npix + 1 ]) mkB[Npix] += 2.0;
@@ -53,9 +53,9 @@
     }
   }
-	
+
   // loop over input ct and repair the reparable pixels
   for (iy = 1; iy < Ny - 1; iy++) {
     for (ix = 1; ix < Nx - 1; ix++) {
-      
+
       int Npix = ix + Nx*iy;
 
@@ -63,22 +63,26 @@
       if (mkB[Npix] == 1.0) continue; // does not need to be repaired
 
-      float Vxm, Vxp, Vym, Vyp, Value;
+      float Vxm = 0.0;
+      float Vxp = 0.0;
+      float Vym = 0.0;
+      float Vyp = 0.0;
+      float Value = 0.0;
       if ((mkB[Npix] == 2) || (mkB[Npix] == 6)) {
-	Vxm = inB[Npix - 1 ] / ctB[Npix - 1 ];
-	Vxp = inB[Npix + 1 ] / ctB[Npix + 1 ];
+        Vxm = inB[Npix - 1 ] / ctB[Npix - 1 ];
+        Vxp = inB[Npix + 1 ] / ctB[Npix + 1 ];
       }
       if ((mkB[Npix] == 4) || (mkB[Npix] == 6)) {
-	Vym = inB[Npix - Nx] / ctB[Npix - Nx];
-	Vyp = inB[Npix + Nx] / ctB[Npix + Nx];
+        Vym = inB[Npix - Nx] / ctB[Npix - Nx];
+        Vyp = inB[Npix + Nx] / ctB[Npix + Nx];
       }
 
       if (mkB[Npix] == 2) {
-	Value = 0.5*(Vxm + Vxp);
+        Value = 0.5*(Vxm + Vxp);
       }
       if (mkB[Npix] == 4) {
-	Value = 0.5*(Vym + Vyp);
+        Value = 0.5*(Vym + Vyp);
       }
       if (mkB[Npix] == 6) {
-	Value = 0.25*(Vxm + Vxp + Vym + Vyp);
+        Value = 0.25*(Vxm + Vxp + Vym + Vyp);
       }
 
