IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14077


Ignore:
Timestamp:
Jul 9, 2007, 10:11:29 AM (19 years ago)
Author:
jhoblitt
Message:

change psTimeCopy() to pass through NULL values

File:
1 edited

Legend:

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

    r13950 r14077  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2007-06-22 02:28:48 $
     12 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2007-07-09 20:11:29 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    16901690
    16911691    if (*lastChar != '\0') {
    1692         psTrace("psLib.astrom", 3, "handling fractional second in time string\n");
     1692        psTrace("psLib.astro", 3, "handling fractional second in time string\n");
    16931693        // XXXXXXXXXXXXXXX
    16941694        // XXX this is a really stupid error:
     
    18441844psTime *psTimeCopy(const psTime *inTime)
    18451845{
    1846     PS_ASSERT_PTR_NON_NULL(inTime, NULL);
     1846    // Pass through NULL values!
     1847    if (!inTime) {
     1848        psTrace("psLib.astro", 6, "passing through NULL value");
     1849        return NULL;
     1850    }
     1851
    18471852    psTime *outTime = psTimeAlloc(inTime->type);
    18481853    if (outTime == NULL) {
Note: See TracChangeset for help on using the changeset viewer.