IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

properly handle p5toolConfig() errors

File:
1 edited

Legend:

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

    r11818 r11853  
    5353
    5454    pxConfig *config = p5toolConfig(NULL, argc, argv);
     55    if (!config) {
     56        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     57        goto FAIL;
     58    }
    5559
    5660    switch (config->mode) {
     
    7478FAIL:
    7579    psErrorStackPrint(stderr, "\n");
     80    int exit_status = pxerrorGetExitStatus();
    7681
    7782    psFree(config);
     
    7984    psLibFinalize();
    8085
    81     exit(EXIT_FAILURE);
     86    exit(exit_status);
    8287}
    8388
Note: See TracChangeset for help on using the changeset viewer.