IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

properly handle detselectConfig() errors

File:
1 edited

Legend:

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

    r11713 r11856  
    4242
    4343    pxConfig *config = detselectConfig(NULL, argc, argv);
     44    if (!config) {
     45        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     46        goto FAIL;
     47    }
    4448
    4549    switch (config->mode) {
     
    5761
    5862FAIL:
     63    psErrorStackPrint(stderr, "\n");
     64    int exit_status = pxerrorGetExitStatus();
     65
    5966    psFree(config);
    6067    pmConfigDone();
    61     psErrorStackPrint(stderr, "\n");
    6268    psLibFinalize();
    6369
    64     exit(EXIT_FAILURE);
     70    exit(exit_status);
    6571}
    6672
Note: See TracChangeset for help on using the changeset viewer.