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/regtool.c

    r10207 r10231  
    10341034            return false;
    10351035        }
    1036         dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);
     1036        // pass through NULL as this is an optional field
     1037        if (dateobsStr) {
     1038            dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);
     1039        } else {
     1040            dateobs = NULL;
     1041        }
    10371042    }
    10381043
Note: See TracChangeset for help on using the changeset viewer.