Changeset 383 for trunk/src/sh_extern.c


Ignore:
Timestamp:
Dec 5, 2011, 10:30:33 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #281 (warnings from clang static analyzer).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_extern.c

    r321 r383  
    435435                  /* failed
    436436                   */
    437                   _exit(EXIT_FAILURE);
     437                  _exit((errnum == 0) ? (EXIT_SUCCESS) : (EXIT_FAILURE));
    438438              }
    439439              PDBGC_S("fexecve: not working");
     
    471471          /* failed
    472472           */
    473           _exit(EXIT_FAILURE);
     473          _exit((errnum == 0) ? (EXIT_SUCCESS) : (EXIT_FAILURE));
    474474        }
    475475      /*
Note: See TracChangeset for help on using the changeset viewer.