From 9cbe1c57c3a086db9273d70359db181a6e3f452a Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Fri, 16 Feb 2018 16:05:26 +0100 Subject: [PATCH] cmdline: simpler unique_ptr construction --- cmdline.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmdline.cc b/cmdline.cc index 034fcbe..ba40095 100644 --- a/cmdline.cc +++ b/cmdline.cc @@ -308,8 +308,7 @@ static std::string argByColon(const char* str, size_t pos) { } std::unique_ptr parseArgs(int argc, char* argv[]) { - std::unique_ptr nsjconf; - nsjconf.reset(new nsjconf_t); + std::unique_ptr nsjconf(new nsjconf_t); nsjconf->use_execveat = false; nsjconf->exec_fd = -1; -- 2.34.1