IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

removed test in psTimeCopy checking for psTimeAlloc() returning NULL. psTimeAlloc() should never return NULL.

File:
1 edited

Legend:

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

    r9805 r9818  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.100 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-10-31 05:06:19 $
     12 *  @version $Revision: 1.101 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-11-01 21:45:08 $
    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     }
    18721867    //    *outTime = *inTime;
    18731868    outTime->sec = inTime->sec;
Note: See TracChangeset for help on using the changeset viewer.