IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2004, 3:09:18 PM (22 years ago)
Author:
evanalst
Message:

Add check for negative codes for psErrorCodeString function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psErrorCodes.c

    r1818 r1873  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-16 18:51:32 $
     9 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-24 01:09:18 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8484const char *psErrorCodeString(psErrorCode code)
    8585{
     86    // Check input argument is non-negative
     87    if ( code < 0 ) {
     88        return NULL;
     89    }
     90
    8691    psErrorDescription* desc = getErrorDescription(code);
    8792
Note: See TracChangeset for help on using the changeset viewer.