IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14357


Ignore:
Timestamp:
Jul 20, 2007, 3:33:53 PM (19 years ago)
Author:
Paul Price
Message:

uri and path_base only required if code == 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/difftool.c

    r14260 r14357  
    557557    }
    558558
     559    psS16 code = psMetadataLookupS16(&status, config->args, "-code");
     560    if (!status) {
     561        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code");
     562        return false;
     563    }
     564
    559565    psString uri = psMetadataLookupStr(&status, config->args, "-uri");
    560566    if (!status) {
     
    562568        return false;
    563569    }
    564     if (!uri) {
     570    if (code == 0 && !uri) {
    565571        psError(PS_ERR_UNKNOWN, true, "-uri is required");
    566572        return false;
     
    572578        return false;
    573579    }
    574     if (!path_base) {
     580    if (code == 0 && !path_base) {
    575581        psError(PS_ERR_UNKNOWN, true, "-path_base is required");
    576582        return false;
     
    587593    if (!status) {
    588594        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -bg_stdev");
    589         return false;
    590     }
    591 
    592     // default values
    593     psS16 code = psMetadataLookupS16(&status, config->args, "-code");
    594     if (!status) {
    595         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code");
    596595        return false;
    597596    }
Note: See TracChangeset for help on using the changeset viewer.