Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 7976)
+++ /trunk/psLib/src/db/psDB.c	(revision 7977)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-07-26 01:37:54 $
+ *  @version $Revision: 1.73 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-07-26 01:38:05 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -1041,7 +1041,6 @@
 
     // loop over fields
-    psU32 i = 0;
     psMetadataItem *item = NULL;              // field in row
-    while ((item = psListGetAndIncrement(cursor))) {
+    for (psU32 i = 0; (item = psListGetAndIncrement(cursor)); i++) {
         // lookup pType -> mysql type
         mType = psDBPTypeToMySQL(item->type);
@@ -1151,7 +1150,4 @@
             return false;
         }
-
-        // increment field index
-        i++;
     }
 
