IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

properly handle pzgetimfileConfig() errors

File:
1 edited

Legend:

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

    r10971 r11859  
    4040
    4141    pxConfig *config = pzgetimfilesConfig(NULL, argc, argv);
     42    if (!config) {
     43        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     44        goto FAIL;
     45    }
    4246
    4347    if (!go(config)) {
     
    5357FAIL:
    5458    psErrorStackPrint(stderr, "\n");
     59    int exit_status = pxerrorGetExitStatus();
    5560
    5661    psFree(config);
     
    5863    psLibFinalize();
    5964
    60     exit(EXIT_FAILURE);
     65    exit(exit_status);
    6166}
    6267
Note: See TracChangeset for help on using the changeset viewer.