Index: trunk/psLib/src/math/psMinimizePolyFit.c
===================================================================
--- trunk/psLib/src/math/psMinimizePolyFit.c	(revision 9730)
+++ trunk/psLib/src/math/psMinimizePolyFit.c	(revision 10548)
@@ -10,6 +10,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-10-24 22:52:56 $
+ *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-08 11:37:31 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -855,6 +855,5 @@
         }
 
-        stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
@@ -1304,6 +1303,5 @@
         }
 
-        stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
@@ -1835,6 +1833,5 @@
         }
 
-        stats  = psVectorStats(stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
@@ -2412,6 +2409,5 @@
         }
 
-        stats  = psVectorStats (stats, resid, NULL, mask, maskValue);
-        if (stats == NULL) {
+        if (!psVectorStats (stats, resid, NULL, mask, maskValue)) {
             psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
             psFree(resid)
