IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2007, 12:19:23 PM (19 years ago)
Author:
jhoblitt
Message:

properly hanlde dettoolConfig() errors

File:
1 edited

Legend:

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

    r11816 r11855  
    9595
    9696    pxConfig *config = dettoolConfig(NULL, argc, argv);
     97    if (!config) {
     98        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     99        goto FAIL;
     100    }
    97101
    98102    switch (config->mode) {
     
    147151FAIL:
    148152    psErrorStackPrint(stderr, "\n");
     153    int exit_status = pxerrorGetExitStatus();
    149154
    150155    psFree(config);
     
    152157    psLibFinalize();
    153158
    154     exit(EXIT_FAILURE);
     159    exit(exit_status);
    155160}
    156161
Note: See TracChangeset for help on using the changeset viewer.