Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 10773)
+++ trunk/psLib/src/math/psStats.c	(revision 10848)
@@ -13,6 +13,6 @@
  * use ->min and ->max (PS_STAT_USE_RANGE)
  *
- *  @version $Revision: 1.196 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-12-16 05:33:48 $
+ *  @version $Revision: 1.197 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-12-29 04:38:42 $
  *
  *  Copyright 2006 IfA, University of Hawaii
@@ -1856,6 +1856,5 @@
         // Determine the coefficients of the polynomial.
         psPolynomial1D *myPoly = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, 2);
-        myPoly = psVectorFitPolynomial1D(myPoly, NULL, 0, y, NULL, x);
-        if (myPoly == NULL) {
+        if (!psVectorFitPolynomial1D(myPoly, NULL, 0, y, NULL, x)) {
             psError(PS_ERR_UNEXPECTED_NULL, false,
                     _("Failed to fit a 1-dimensional polynomial to the three specified data points.  Returning NAN."));
