diff --git a/src/util/process.cpp b/src/util/process.cpp index 79333f1..5203029 100644 --- a/src/util/process.cpp +++ b/src/util/process.cpp @@ -166,7 +166,7 @@ int run(const char * const args[]) { #if INNOEXTRACT_HAVE_WAITPID int status; (void)waitpid(pid, &status, 0); - if(WIFEXITED(status) && (WEXITSTATUS(status) >= 0 && WEXITSTATUS(status) < 127)) { + if(WIFEXITED(status) && WEXITSTATUS(status) < 127) { return WEXITSTATUS(status); } else if(WIFSIGNALED(status)) { return -WTERMSIG(status);