IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

properly handle pzgetexpConfig() errors

File:
1 edited

Legend:

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

    r10045 r11857  
    3939
    4040    pxConfig *config = pzgetexpConfig(NULL, argc, argv);
     41    if (!config) {
     42        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     43        goto FAIL;
     44    }
    4145
    4246    if (!go(config)) {
     
    5256FAIL:
    5357    psErrorStackPrint(stderr, "\n");
     58    int exit_status = pxerrorGetExitStatus();
    5459   
    5560    psFree(config);
     
    5762    psLibFinalize();
    5863
    59     exit(EXIT_FAILURE);
     64    exit(exit_status);
    6065}
    6166
Note: See TracChangeset for help on using the changeset viewer.