Index: trunk/psLib/src/dataManip/psStats.c
===================================================================
--- trunk/psLib/src/dataManip/psStats.c	(revision 3374)
+++ trunk/psLib/src/dataManip/psStats.c	(revision 3377)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.118 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-03-04 20:51:20 $
+ *  @version $Revision: 1.119 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-03-05 21:53:03 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1042,11 +1042,14 @@
     // However, we do no want to modify the original mask vector.
     tmpMask = psVectorAlloc(myVector->n, PS_TYPE_U8);
-    PS_VECTOR_SET_U8(tmpMask, 0);
 
     // If we were called with a mask vector, then initialize the temporary
-    // mask vector with those values.
+    // mask vector with those values.  Otherwise, initialize to zero.
     if (maskVector != NULL) {
         for (psS32 i = 0; i < tmpMask->n; i++) {
             tmpMask->data.U8[i] = maskVector->data.U8[i];
+        }
+    } else {
+        for (psS32 i = 0; i < tmpMask->n; i++) {
+            tmpMask->data.U8[i] = 0;
         }
     }
