diff options
Diffstat (limited to 'lib/System/Unix/Program.inc')
-rw-r--r-- | lib/System/Unix/Program.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 0209f5aaf8..bbb029c4f3 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -212,7 +212,9 @@ Program::Execute(const Path &path, const char **args, const char **envp, envp = const_cast<const char **>(*_NSGetEnviron()); #endif - pid_t PID; + // Explicitly initialized to prevent what appears to be a valgrind false + // positive. + pid_t PID = 0; int Err = posix_spawn(&PID, path.c_str(), &FileActions, /*attrp*/0, const_cast<char **>(args), const_cast<char **>(envp)); |