IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

properly handle pxinjectConfig() errors

File:
1 edited

Legend:

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

    r11702 r11854  
    4444
    4545    pxConfig *config = pxinjectConfig(NULL, argc, argv);
     46    if (!config) {
     47        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     48        goto FAIL;
     49    }
    4650
    4751    switch (config->mode) {
     
    6064FAIL:
    6165    psErrorStackPrint (stderr, "failure\n");
     66    int exit_status = pxerrorGetExitStatus();
    6267
    6368    psFree(config);
     
    6570    psLibFinalize();
    6671
    67     exit(EXIT_FAILURE);
     72    exit(exit_status);
    6873}
    6974
Note: See TracChangeset for help on using the changeset viewer.