IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 15, 2007, 3:55:36 PM (19 years ago)
Author:
jhoblitt
Message:

handle p2toolConfig() errors properly

File:
1 edited

Legend:

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

    r11735 r11843  
    5454
    5555    pxConfig *config = p2toolConfig(NULL, argc, argv);
     56    if (!config) {
     57        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     58        goto FAIL;
     59    }
    5660
    5761    switch (config->mode) {
     
    7680FAIL:
    7781    psErrorStackPrint(stderr, "\n");
     82    int exit_status = pxerrorGetExitStatus();
    7883
    7984    psFree(config);
     
    8186    psLibFinalize();
    8287
    83     exit(EXIT_FAILURE);
     88    exit(exit_status);
    8489}
    8590
Note: See TracChangeset for help on using the changeset viewer.