IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 25, 2006, 3:38:05 PM (20 years ago)
Author:
Paul Price
Message:

"while" loop should be a "for" loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r7976 r7977  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-07-26 01:37:54 $
     14 *  @version $Revision: 1.73 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-07-26 01:38:05 $
    1616 *
    1717 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    10411041
    10421042    // loop over fields
    1043     psU32 i = 0;
    10441043    psMetadataItem *item = NULL;              // field in row
    1045     while ((item = psListGetAndIncrement(cursor))) {
     1044    for (psU32 i = 0; (item = psListGetAndIncrement(cursor)); i++) {
    10461045        // lookup pType -> mysql type
    10471046        mType = psDBPTypeToMySQL(item->type);
     
    11511150            return false;
    11521151        }
    1153 
    1154         // increment field index
    1155         i++;
    11561152    }
    11571153
Note: See TracChangeset for help on using the changeset viewer.