diff options
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); |