Index: trunk/psLib/src/collections/psScalar.c
===================================================================
--- trunk/psLib/src/collections/psScalar.c	(revision 1063)
+++ trunk/psLib/src/collections/psScalar.c	(revision 1162)
@@ -8,6 +8,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-19 01:59:51 $
+ *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-07-01 00:14:40 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -21,4 +21,5 @@
 #include "psScalar.h"
 #include "psLogMsg.h"
+#include "psAbort.h"
 
 /******************************************************************************/
@@ -61,4 +62,8 @@
     // Create scalar
     scalar = (psScalar *)psAlloc(sizeof(psScalar));
+    if(scalar == NULL) {
+        psAbort(__func__," : Line %d - Failed to allocate memory", __LINE__);
+    }
+
     scalar->type.dimen = PS_DIMEN_SCALAR;
     scalar->type.type = dataType;
