diff options
| author | Martin Ridgers <[email protected]> | 2021-11-25 10:08:01 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-25 10:17:49 +0100 |
| commit | 9e507562dd3da78da5b1604d3206639e7c029300 (patch) | |
| tree | 5f22c52f9062192d2e756f6b66a370c0a957f51a /zencore/thread.cpp | |
| parent | Added log if a wait was abandoned because the process disappeared (diff) | |
| download | zen-9e507562dd3da78da5b1604d3206639e7c029300.tar.xz zen-9e507562dd3da78da5b1604d3206639e7c029300.zip | |
A nullptr terminator ArgV only applies on Linux
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 91597b07a..08808e79e 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -630,8 +630,6 @@ static void BuildArgV(std::vector<char*>& Out, char* CommandLine) *Cursor = '\0'; ++Cursor; } - - Out.push_back(nullptr); } #if ZEN_PLATFORM_WINDOWS @@ -826,6 +824,7 @@ CreateProcResult CreateProc( std::vector<char*> ArgV; std::string CommandLineZ(CommandLine); BuildArgV(ArgV, CommandLineZ.data()); + ArgV.push_back(nullptr); int ChildPid = fork(); if (ChildPid < 0) |