Index: /trunk/psLib/src/dataManip/psStats.c
===================================================================
--- /trunk/psLib/src/dataManip/psStats.c	(revision 2225)
+++ /trunk/psLib/src/dataManip/psStats.c	(revision 2226)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-28 00:22:53 $
+ *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-28 00:45:44 $
 n *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1546,5 +1546,5 @@
     PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL);
     PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL);
-    PS_VECTOR_CHECK_NULL(in, NULL);
+    PS_VECTOR_CHECK_NULL(in, out);
     if (mask != NULL) {
         PS_VECTOR_CHECK_SIZE_EQUAL(in, mask, NULL);
@@ -1679,8 +1679,8 @@
 {
     PS_PTR_CHECK_NULL(stats, NULL);
-    PS_VECTOR_CHECK_NULL(in, NULL);
+    PS_VECTOR_CHECK_NULL(in, stats);
     if (mask != NULL) {
-        PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, NULL);
-        PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, NULL);
+        PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, stats);
+        PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, stats);
     }
     psVector* inF32;
Index: /trunk/psLib/src/math/psStats.c
===================================================================
--- /trunk/psLib/src/math/psStats.c	(revision 2225)
+++ /trunk/psLib/src/math/psStats.c	(revision 2226)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-28 00:22:53 $
+ *  @version $Revision: 1.78 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-28 00:45:44 $
 n *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -1546,5 +1546,5 @@
     PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL);
     PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL);
-    PS_VECTOR_CHECK_NULL(in, NULL);
+    PS_VECTOR_CHECK_NULL(in, out);
     if (mask != NULL) {
         PS_VECTOR_CHECK_SIZE_EQUAL(in, mask, NULL);
@@ -1679,8 +1679,8 @@
 {
     PS_PTR_CHECK_NULL(stats, NULL);
-    PS_VECTOR_CHECK_NULL(in, NULL);
+    PS_VECTOR_CHECK_NULL(in, stats);
     if (mask != NULL) {
-        PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, NULL);
-        PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, NULL);
+        PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, stats);
+        PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, stats);
     }
     psVector* inF32;
Index: /trunk/psLib/test/dataManip/tst_psHist02.c
===================================================================
--- /trunk/psLib/test/dataManip/tst_psHist02.c	(revision 2225)
+++ /trunk/psLib/test/dataManip/tst_psHist02.c	(revision 2226)
@@ -114,4 +114,7 @@
                              "Calling psVectorHistogram() with various NULL inputs." );
 
+
+
+    // ********************************************************************
     // Verify the return value is null and program execution doesn't stop,
     // if input parameter myHist is null.
@@ -125,5 +128,6 @@
 
 
-    // Verify the retrun value is the same as the input parameter myHist and
+    // ********************************************************************
+    // Verify the return value is the same as the input parameter myHist and
     // program execution doesn't stop, if the input parameter myArray is
     // null.
@@ -138,4 +142,6 @@
 
 
+    exit(0);
+    // ********************************************************************
     // Verify the return value is the same as the input parameter myHist and
     // program execution doesn't stop, if the input parameter myArray has no
Index: /trunk/psLib/test/dataManip/tst_psStats00.c
===================================================================
--- /trunk/psLib/test/dataManip/tst_psStats00.c	(revision 2225)
+++ /trunk/psLib/test/dataManip/tst_psStats00.c	(revision 2226)
@@ -11,5 +11,4 @@
 {
     psStats *myStats    = NULL;
-    psStats *myStats2    = NULL;
     psS32 testStatus      = true;
     psS32 globalTestStatus = true;
@@ -164,7 +163,9 @@
                 "PS_STAT_SAMPLE_MEAN: with vector mask=3",
                 testStatus);
+
     /*************************************************************************/
     /*  Call psVectorStats() with NULL inputs.                               */
     /*************************************************************************/
+
     printPositiveTestHeader(stdout,
                             "psStats functions",
@@ -172,5 +173,5 @@
 
     myStats = psVectorStats(myStats, NULL, NULL, 0);
-    myStats2 = psVectorStats(NULL, myVector, NULL, 0);
+    psStats *myStats2 = psVectorStats(NULL, myVector, NULL, 0);
 
     printFooter(stdout,
@@ -195,4 +196,5 @@
         psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
     }
+    psFree(myStats2);
 
     printFooter(stdout,
