IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

properly handle pztoolConfig() errors

File:
1 edited

Legend:

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

    r11702 r11860  
    4848
    4949    pxConfig *config = pztoolConfig(NULL, argc, argv);
     50    if (!config) {
     51        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     52        goto FAIL;
     53    }
    5054
    5155    switch (config->mode) {
     
    6670FAIL:
    6771    psErrorStackPrint(stderr, "\n");
     72    int exit_status = pxerrorGetExitStatus();
    6873
    6974    psFree(config);
     
    7176    psLibFinalize();
    7277
    73     exit(EXIT_FAILURE);
     78    exit(exit_status);
    7479}
    7580
Note: See TracChangeset for help on using the changeset viewer.