From 0db5f0f07e6411fa25aefd464648ec8fc335a2d7 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 13 Jun 2013 14:39:07 +0000 Subject: [PATCH] Zero-initializing variables; fixes a build breakage introduced in r183864. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183904 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Program.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/Program.cpp b/lib/Support/Program.cpp index ae7e291e2a0..6e04a1cd536 100644 --- a/lib/Support/Program.cpp +++ b/lib/Support/Program.cpp @@ -33,7 +33,7 @@ int sys::ExecuteAndWait(const Path &path, const char **args, const char **envp, const Path **redirects, unsigned secondsToWait, unsigned memoryLimit, std::string *ErrMsg, bool *ExecutionFailed) { - void *Data; + void *Data = 0; if (Execute(Data, path, args, envp, redirects, memoryLimit, ErrMsg)) { if (ExecutionFailed) *ExecutionFailed = false; return Wait(Data, path, secondsToWait, ErrMsg); @@ -45,7 +45,7 @@ int sys::ExecuteAndWait(const Path &path, const char **args, const char **envp, void sys::ExecuteNoWait(const Path &path, const char **args, const char **envp, const Path **redirects, unsigned memoryLimit, std::string *ErrMsg) { - void *Data; + void *Data = 0; Execute(Data, path, args, envp, redirects, memoryLimit, ErrMsg); } -- 2.34.1