IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2006, 12:06:30 PM (20 years ago)
Author:
jhoblitt
Message:

guard psTimeFromISO() from being called with NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxinject.c

    r10115 r10231  
    126126            return false;
    127127        }
    128         dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);
     128        // pass through NULL as this is an optional field
     129        if (dateobsStr) {
     130            dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);
     131        } else {
     132            dateobs = NULL;
     133        }
     134
    129135    }
    130136
Note: See TracChangeset for help on using the changeset viewer.