IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27057


Ignore:
Timestamp:
Feb 24, 2010, 1:47:36 PM (16 years ago)
Author:
Paul Price
Message:

Check return value of pmConfigConvertFilename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigDump.c

    r23753 r27057  
    144144
    145145    psString resolved = pmConfigConvertFilename(filename, config, true, false); // Resolved filename
     146    if (!resolved) {
     147        psError(psErrorCodeLast(), false, "Unable to create file for configuration dump: %s", filename);
     148        return false;
     149    }
    146150
    147151    if (!psMetadataConfigWrite(config->user, resolved)) {
    148         psError(PS_ERR_IO, false, "Unable to dump configuration to %s", filename);
     152        psError(psErrorCodeLast(), false, "Unable to dump configuration to %s", filename);
    149153        psFree(resolved);
    150154        return false;
Note: See TracChangeset for help on using the changeset viewer.