IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2006, 12:11:19 PM (20 years ago)
Author:
magnier
Message:

added error checking on FPA.NAME

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAConstruct.c

    r7406 r7442  
    554554    // Check the name of the FPA
    555555    psString newFPAname = phuNameFromHeader("FPA.NAME", fileInfo, phu); // New name for the FPA
     556    if (!newFPAname) {
     557        psError(PS_ERR_IO, true, "Unable to determine FPA.NAME");
     558        return NULL;
     559    }
     560
    556561    const char *currentFPAname = psMetadataLookupStr(&mdok, fpa->concepts, "FPA.NAME"); // Current name
    557562    if (mdok && currentFPAname && strlen(currentFPAname) > 0 && strcmp(currentFPAname, newFPAname) != 0) {
Note: See TracChangeset for help on using the changeset viewer.