IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7408


Ignore:
Timestamp:
Jun 7, 2006, 12:52:47 PM (20 years ago)
Author:
rhl
Message:

Separate failure-to-find from NULL metadata in pmFPAfileDropInternal

File:
1 edited

Legend:

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

    r7382 r7408  
    744744    PS_ASSERT_INT_POSITIVE(strlen(name), false);
    745745
    746     bool status;
     746    bool status = false;
    747747
    748748    pmFPAfile *file = psMetadataLookupPtr (&status, files, name);
     749    if (!status) {
     750        psError(PS_ERR_IO, true, "Failed to lookup %s", name);
     751        return false;
     752    }
    749753    if (file == NULL) {
    750         psError(PS_ERR_IO, true, "Failed to lookup %s", name);
     754        psError(PS_ERR_IO, true, "file %s is NULL", name);
    751755        return false;
    752756    }
Note: See TracChangeset for help on using the changeset viewer.