[llvm] r183904 - Zero-initializing variables; fixes a build breakage introduced in r183864.
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Jun 13 07:46:59 PDT 2013
Thanks!
On 13 June 2013 10:39, Aaron Ballman <aaron at aaronballman.com> wrote:
> Author: aaronballman
> Date: Thu Jun 13 09:39:07 2013
> New Revision: 183904
>
> URL: http://llvm.org/viewvc/llvm-project?rev=183904&view=rev
> Log:
> Zero-initializing variables; fixes a build breakage introduced in r183864.
>
> Modified:
> llvm/trunk/lib/Support/Program.cpp
>
> Modified: llvm/trunk/lib/Support/Program.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Program.cpp?rev=183904&r1=183903&r2=183904&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Support/Program.cpp (original)
> +++ llvm/trunk/lib/Support/Program.cpp Thu Jun 13 09:39:07 2013
> @@ -33,7 +33,7 @@ int sys::ExecuteAndWait(const Path &path
> 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
> 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);
> }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list