IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10241 for trunk/psLib/src/db


Ignore:
Timestamp:
Nov 28, 2006, 12:41:47 PM (20 years ago)
Author:
jhoblitt
Message:

change psDBPackMySQLRow() to check the return of psTimeToTM().

File:
1 edited

Legend:

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

    r10132 r10241  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.117 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-11-22 04:34:40 $
     14 *  @version $Revision: 1.118 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-11-28 22:41:47 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    11841184                    psTime *time = (psTime *)item->data.V;
    11851185                    struct tm *tmTime = psTimeToTM(time);
     1186                    if (!tmTime) {
     1187                        psError(PS_ERR_UNKNOWN, false, _("failed to convert psTime to struct tm"));
     1188                        psFree(cursor);
     1189
     1190                        return false;
     1191                    }
    11861192
    11871193                    // XXX it wouldn't hurt to make this conversion it's own
Note: See TracChangeset for help on using the changeset viewer.