From 5a09b586135b65255723bb7ac562086dad6fab30 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 2 May 2017 01:08:01 +0200 Subject: [PATCH] incorrect check --- build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cc b/build.cc index b1c2c80..4f1d6f5 100644 --- a/build.cc +++ b/build.cc @@ -120,7 +120,7 @@ static void exec_command( if (pid == -1) { throw std::runtime_error{"command failed"}; } else if (!pid) { - if (!execvp(argp[0], argp.get())) { + if (execvp(argp[0], argp.get())) { argp.reset(); std::exit(1); }