Index: /trunk/psLib/src/collections/psDlist.c
===================================================================
--- /trunk/psLib/src/collections/psDlist.c	(revision 915)
+++ /trunk/psLib/src/collections/psDlist.c	(revision 916)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-08 02:18:15 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-06-08 02:39:42 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -420,4 +420,5 @@
     psDlistElem* ptr;
     unsigned int n;
+    psVector* restrict arr;
 
     if (dlist == NULL) {
@@ -425,6 +426,12 @@
     }
 
-    psVector* restrict arr = psVectorAlloc(dlist->size, PS_TYPE_PTR);
-    arr->n = arr->nalloc;
+    if (dlist->size > 0) {
+        arr = psVectorAlloc(dlist->size, PS_TYPE_PTR);
+    } else {
+        arr = psVectorAlloc(1, PS_TYPE_PTR);
+    }
+
+    arr->n = dlist->size;
+
 
     ptr = dlist->head;
