From 14872682784e6639bceffa95c6828ef8f4e6767f Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Thu, 24 Sep 2015 19:13:17 +0200 Subject: [PATCH] [Coverity] WEXITSTATUS can never be negative --- src/util/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);