IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35378


Ignore:
Timestamp:
Apr 9, 2013, 11:04:53 AM (13 years ago)
Author:
eugene
Message:

handle missing statsFile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307/pswarp/src/pswarpStatsFile.c

    r35373 r35378  
    3636    char *name = psMetadataLookupStr(&mdok, config->arguments, "STATS"); ///< Filename for statistics
    3737
    38     if (!mdok) return NULL; // XXX this is probably a config error, but treat as ok for now
    39     if (!name) return NULL;
    40     if (strlen(name) == 0) return NULL;
    41 
    4238    pswarpStatsFile *statsFile = pswarpStatsFileAlloc ();
    4339    statsFile->name = name;
     40
     41    if (!mdok) return statsFile; // XXX this is probably a config error, but treat as ok for now
     42    if (!name) return statsFile;
     43    if (strlen(name) == 0) return statsFile;
    4444
    4545    psString resolved = pmConfigConvertFilename(name, config, true, true);
     
    6262
    6363    if (!statsFile) return true;
     64    if (!statsFile->md) return true;
    6465
    6566    // Write out summary statistics
Note: See TracChangeset for help on using the changeset viewer.