Index: /trunk/psLib/src/collections/psList.c
===================================================================
--- /trunk/psLib/src/collections/psList.c	(revision 3081)
+++ /trunk/psLib/src/collections/psList.c	(revision 3082)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-20 00:51:29 $
+ *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-01-25 00:12:12 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -512,5 +512,11 @@
 psPtr psListGetPrevious(psListIterator* iterator)
 {
-    if (iterator == NULL || iterator->cursor == NULL) {
+    if ( (iterator == NULL ) || ((iterator->cursor == NULL) && (!iterator->offEnd)) ) {
+        return NULL;
+    }
+    if ( (iterator->cursor == NULL) && (iterator->offEnd) ) {
+        iterator->cursor = iterator->list->tail;
+        iterator->index = iterator->list->size-1;
+        iterator->offEnd = false;
         return NULL;
     }
Index: /trunk/psLib/src/types/psList.c
===================================================================
--- /trunk/psLib/src/types/psList.c	(revision 3081)
+++ /trunk/psLib/src/types/psList.c	(revision 3082)
@@ -6,6 +6,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-20 00:51:29 $
+ *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-01-25 00:12:12 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -512,5 +512,11 @@
 psPtr psListGetPrevious(psListIterator* iterator)
 {
-    if (iterator == NULL || iterator->cursor == NULL) {
+    if ( (iterator == NULL ) || ((iterator->cursor == NULL) && (!iterator->offEnd)) ) {
+        return NULL;
+    }
+    if ( (iterator->cursor == NULL) && (iterator->offEnd) ) {
+        iterator->cursor = iterator->list->tail;
+        iterator->index = iterator->list->size-1;
+        iterator->offEnd = false;
         return NULL;
     }
