Index: trunk/psLib/src/math/psMinimize.c
===================================================================
--- trunk/psLib/src/math/psMinimize.c	(revision 1861)
+++ trunk/psLib/src/math/psMinimize.c	(revision 1879)
@@ -9,6 +9,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-23 06:12:22 $
+ *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-24 20:08:22 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -730,8 +730,16 @@
 
     PS_CHECK_NULL_1DPOLY(myPoly);
-    PS_CHECK_NULL_VECTOR(x);
-    PS_CHECK_EMPTY_VECTOR(x);
     PS_CHECK_NULL_VECTOR(y);
     PS_CHECK_EMPTY_VECTOR(y);
+
+    // XXX: Verify that this is the correct action.
+    if (x == NULL) {
+        x = psVectorAlloc(y->n, PS_TYPE_F32);
+        for (i=0;i<x->n;i++) {
+            x->data.F32[i] = (float) i;
+        }
+    }
+
+    PS_CHECK_EMPTY_VECTOR(x);
     PS_CHECK_NULL_VECTOR(yErr);
     PS_CHECK_EMPTY_VECTOR(yErr);
