From 4f3422c58ed4fc14b222cd474843affb9cc509c4 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 9 Dec 2024 20:02:33 +0100 Subject: Various clang-tidy fixes. --- src/execute.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/execute.cc') diff --git a/src/execute.cc b/src/execute.cc index 94a3d73..cbae899 100644 --- a/src/execute.cc +++ b/src/execute.cc @@ -46,7 +46,7 @@ public: int parent_waitpid(pid_t pid) { - int status; + int status{}; if(waitpid(pid, &status, 0) != pid) { @@ -104,7 +104,7 @@ int execute(const ctor::settings& settings, for(auto current = environ; *current; ++current) { - venv.push_back(*current); + venv.emplace_back(*current); } Env penv(venv); -- cgit v1.2.3