diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-09 20:02:33 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-09 20:28:00 +0100 |
commit | 4f3422c58ed4fc14b222cd474843affb9cc509c4 (patch) | |
tree | 5d6079f5309fabf553119fad5b01779c6a8097d0 /src/execute.cc | |
parent | 5ba36c7be0a12b9b052fb172a209d3b6dffc9a99 (diff) |
Various clang-tidy fixes.
Diffstat (limited to 'src/execute.cc')
-rw-r--r-- | src/execute.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |