vcpkg/ports/grpc/00005-fix-uwp-error.patch
Carlos O'Ryan ebe505081b [grpc] Upgrade to gRPC-1.26.0 (#9363)
* WIP - Upgrade gRPC to 1.26.0

* Updated patch 00001

* Update 00002 patch.

* Update 00003

* Update 00005

* Remove 00007 patch.

* Really fix patch 00005

* Use CRLF for patches as before 🤷
2020-01-06 12:24:51 -08:00

13 lines
563 B
Diff

diff --git a/src/core/lib/slice/slice.cc b/src/core/lib/slice/slice.cc
index c0e2164..331e54c 100644
--- a/src/core/lib/slice/slice.cc
+++ b/src/core/lib/slice/slice.cc
@@ -214,6 +214,7 @@ grpc_slice grpc_slice_from_moved_buffer(grpc_core::UniquePtr<char> p,
size_t len) {
uint8_t* ptr = reinterpret_cast<uint8_t*>(p.get());
grpc_slice slice;
+ memset(&slice, 0, sizeof(grpc_slice));
if (len <= sizeof(slice.data.inlined.bytes)) {
slice.refcount = nullptr;
slice.data.inlined.length = len;