IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2007, 12:01:41 PM (19 years ago)
Author:
jhoblitt
Message:

change psTimeConvert() to return NULL when passed an invalid psTime object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psTime.c

    r11694 r12409  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.110 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2007-02-08 01:59:28 $
     12 *  @version $Revision: 1.111 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2007-03-12 22:01:41 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    701701    // Error checks
    702702    PS_ASSERT_PTR_NON_NULL(time,NULL);
    703     PS_ASSERT_INT_WITHIN_RANGE(time->nsec,0,(psU32)((1e9)-1),time);
     703    PS_ASSERT_INT_WITHIN_RANGE(time->nsec,0,(psU32)((1e9)-1), NULL);
    704704
    705705    // If the input type is UT1 then return time and generate error message
Note: See TracChangeset for help on using the changeset viewer.