Index: trunk/psLib/src/sysUtils/psErrorCodes.c
===================================================================
--- trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 2703)
+++ trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 3107)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-13 20:49:56 $
+ *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-02 20:22:22 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -76,6 +76,6 @@
 
         // search dynamic list of error descriptions before giving up.
-        psListIterator* iter = psListIteratorAlloc(dynamicErrorCodes,PS_LIST_HEAD);
-        while ((desc = (psErrorDescription*)psListGetNext(iter)) != NULL) {
+        psListIterator* iter = psListIteratorAlloc(dynamicErrorCodes,PS_LIST_HEAD,true);
+        while ((desc = (psErrorDescription*)psListGetAndIncrement(iter)) != NULL) {
             if (desc->code == code) {
                 psFree(iter);
