IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30894


Ignore:
Timestamp:
Mar 13, 2011, 5:09:05 PM (15 years ago)
Author:
eugene
Message:

replace poorly-standardize basename with our own psStringFileBasename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackSetup.c

    r30620 r30894  
    5151    psString outputName = psStringCopy(psMetadataLookupStr(NULL, config->arguments,
    5252                                                           "OUTPUT")); // Name for temporary files
    53     const char *tempName = basename(outputName);
     53    const char *tempName = psStringFileBasename(outputName);
    5454    if (!tempName) {
    5555        psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to construct basename for temporary files.");
     
    6565                "Unable to find TEMP.IMAGE, TEMP.MASK and TEMP.VARIANCE in recipe");
    6666        psFree(outputName);
     67        psFree(tempName);
    6768        return false;
    6869    }
     
    8283    }
    8384    psFree(outputName);
     85    psFree(tempName);
    8486
    8587    // Original images
Note: See TracChangeset for help on using the changeset viewer.