IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9819


Ignore:
Timestamp:
Nov 1, 2006, 11:56:27 AM (20 years ago)
Author:
jhoblitt
Message:

rollback r1.100 pending discussion of *Alloc() function behavior

File:
1 edited

Legend:

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

    r9818 r9819  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.101 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-11-01 21:45:08 $
     12 *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-11-01 21:56:27 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    18651865    PS_ASSERT_PTR_NON_NULL(inTime, NULL);
    18661866    psTime *outTime = psTimeAlloc(inTime->type);
     1867    if (outTime == NULL) {
     1868        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
     1869                "Invalid type specified in psTimeCopy.  %x", inTime->type);
     1870        return NULL;
     1871    }
    18671872    //    *outTime = *inTime;
    18681873    outTime->sec = inTime->sec;
Note: See TracChangeset for help on using the changeset viewer.