Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 5576)
+++ trunk/psLib/src/math/psStats.c	(revision 5624)
@@ -7,19 +7,19 @@
  *  on those data structures.
  *
-*  @author GLG, MHPCC
-*
-*  XXX: The following stats members are never used, or set in this code.
-*      stats->robustN50
-*      stats->clippedNvalues
-*      stats->binsize
-*
-*
-*
-*
-*  @version $Revision: 1.154 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-11-22 21:40:40 $
-*
-*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
-*/
+ *  @author GLG, MHPCC
+ *
+ *  XXX: The following stats members are never used, or set in this code.
+ *      stats->robustN50
+ *      stats->clippedNvalues
+ *      stats->binsize
+ *
+ *
+ *
+ *
+ *  @version $Revision: 1.155 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-11-30 02:00:09 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ */
 
 #include <stdlib.h>
@@ -1131,4 +1131,27 @@
         statsTmp = psStatsAlloc(PS_STAT_SAMPLE_MEAN);
         p_psMemSetPersistent(statsTmp, true);
+    } else {
+        // XXX EAM : initialize structure if already allocated
+        statsTmp->sampleMean = NAN;
+        statsTmp->sampleMedian = NAN;
+        statsTmp->sampleStdev = NAN;
+        statsTmp->sampleUQ = NAN;
+        statsTmp->sampleLQ = NAN;
+        statsTmp->robustMean = NAN;
+        statsTmp->robustMedian = NAN;
+        statsTmp->robustMode = NAN;
+        statsTmp->robustStdev = NAN;
+        statsTmp->robustUQ = NAN;
+        statsTmp->robustLQ = NAN;
+        statsTmp->robustN50 = -1;            // XXX: This is never used
+        statsTmp->robustNfit = -1;
+        statsTmp->clippedMean = NAN;
+        statsTmp->clippedStdev = NAN;
+        statsTmp->clippedNvalues = -1;     // XXX: This is never used
+        statsTmp->clipSigma = 3.0;
+        statsTmp->clipIter = 3;
+        statsTmp->min = NAN;
+        statsTmp->max = NAN;
+        statsTmp->binsize = NAN;          // XXX: This is never used
     }
 
