IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10231 for trunk/ippTools/src


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

guard psTimeFromISO() from being called with NULL

Location:
trunk/ippTools/src
Files:
2 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
  • 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.