diff options
author | Matt Giuca <mgiuca@chromium.org> | 2015-06-30 17:23:24 +1000 |
---|---|---|
committer | Matt Giuca <mgiuca@chromium.org> | 2015-06-30 17:23:26 +1000 |
commit | 43dcbbfec7e906ede3d383a0139a05ff8a03481f (patch) | |
tree | 035af464a2553579ff31aa3e11008353420ea6ed /src/google | |
parent | d40a0db202433ba002a3e104165d4414e8929432 (diff) | |
download | protobuf-43dcbbfec7e906ede3d383a0139a05ff8a03481f.tar.gz protobuf-43dcbbfec7e906ede3d383a0139a05ff8a03481f.tar.bz2 protobuf-43dcbbfec7e906ede3d383a0139a05ff8a03481f.zip |
Fix "sometimes-uninitialized" warning on Windows Clang.
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/subprocess.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/subprocess.cc b/src/google/protobuf/compiler/subprocess.cc index 61ae4381..a3cff1f8 100644 --- a/src/google/protobuf/compiler/subprocess.cc +++ b/src/google/protobuf/compiler/subprocess.cc @@ -171,7 +171,7 @@ bool Subprocess::Communicate(const Message& input, Message* output, DWORD wait_result = WaitForMultipleObjects(handle_count, handles, FALSE, INFINITE); - HANDLE signaled_handle; + HANDLE signaled_handle = NULL; if (wait_result >= WAIT_OBJECT_0 && wait_result < WAIT_OBJECT_0 + handle_count) { signaled_handle = handles[wait_result - WAIT_OBJECT_0]; |