IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

properly handle p4toolConfig() errors

File:
1 edited

Legend:

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

    r11810 r11852  
    5959
    6060    pxConfig *config = p4toolConfig(NULL, argc, argv);
     61    if (!config) {
     62        psError(PXTOOLS_ERR_CONFIG, false, "failed to configure");
     63        goto FAIL;
     64    }
    6165
    6266    switch (config->mode) {
     
    8488FAIL:
    8589    psErrorStackPrint(stderr, "\n");
     90    int exit_status = pxerrorGetExitStatus();
    8691
    8792    psFree(config);
     
    8994    psLibFinalize();
    9095
    91     exit(EXIT_FAILURE);
     96    exit(exit_status);
    9297}
    9398
Note: See TracChangeset for help on using the changeset viewer.