Index: branches/pap/psastro/src/psastroModelAnalysis.c
===================================================================
--- branches/pap/psastro/src/psastroModelAnalysis.c	(revision 23948)
+++ branches/pap/psastro/src/psastroModelAnalysis.c	(revision 25027)
@@ -153,5 +153,8 @@
 
     psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV);
-    psVectorStats (stats, posZero, NULL, NULL, 0);
+    if (!psVectorStats (stats, posZero, NULL, NULL, 0)) {
+	psError(PS_ERR_UNKNOWN, false, "failure to measure stats");
+	return false;
+    }
 
     fprintf (outfile, "# pos zero %f +/- %f\n", stats->sampleMedian, stats->sampleStdev);
