Index: trunk/stac/src/stacRejection.c
===================================================================
--- trunk/stac/src/stacRejection.c	(revision 3666)
+++ trunk/stac/src/stacRejection.c	(revision 3667)
@@ -83,5 +83,5 @@
 #ifdef TESTING
 	psImage *rejmap = psImageAlloc(nxInput, nyInput, PS_TYPE_F32); // The rejections in the source frame
-	psImage *grad = psImageAlloc(nxInput, nyInput, PS_TYPE_F32);	// The gradient image
+	psImage *gradient = psImageAlloc(nxInput, nyInput, PS_TYPE_F32);	// The gradient image
 #endif
 	psImage *reject = rejected->data[i]; // Pull out the mask in the output frame
@@ -147,5 +147,5 @@
 
 #ifdef TESTING
-			grad->data.F32[y][x] = stacGradient(inputs->data[i], x, y) / meanGrads;
+			gradient->data.F32[y][x] = stacGradient(inputs->data[i], x, y) / meanGrads;
 #endif
 
@@ -153,4 +153,5 @@
 			    mask->data.U8[y][x] = 1;
 			    nBad++;
+
 #ifdef CRFLUX
 			    fprintf(crs, "%d %d --> %f %f %f\n", x, y,
@@ -158,4 +159,5 @@
 				    stacGradient(inputs->data[i], x, y));
 #endif
+
 			} else {
 			    mask->data.U8[y][x] = 0;
@@ -200,5 +202,5 @@
 	}
 	psTrace("stac", 1, "Rejection map written to %s\n", rejmapName);
-	if (!psFitsWriteImage(gradFile, NULL, grad, 0, NULL)) {
+	if (!psFitsWriteImage(gradFile, NULL, gradient, 0, NULL)) {
 	    psErrorStackPrint(stderr, "Unable to write image: %s\n", gradName);
 	}
@@ -208,5 +210,5 @@
 	psFree(gradFile);
 	psFree(rejmap);
-	psFree(grad);
+	psFree(gradient);
 #endif
 
