mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 02:18:59 +08:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
diff --git a/src/core/lib/slice/slice.cc b/src/core/lib/slice/slice.cc
|
|
index c0e21648f7..331e54c45a 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;
|
|
diff --git a/src/core/lib/surface/server.cc b/src/core/lib/surface/server.cc
|
|
index d22b52ad6f..203112e87b 100644
|
|
--- a/src/core/lib/surface/server.cc
|
|
+++ b/src/core/lib/surface/server.cc
|
|
@@ -1230,7 +1230,7 @@ grpc_call_error queue_call_request(grpc_server* server, size_t cq_idx,
|
|
GRPC_ERROR_CREATE_FROM_STATIC_STRING("Server Shutdown"));
|
|
return GRPC_CALL_OK;
|
|
}
|
|
- RequestMatcherInterface* rm;
|
|
+ RequestMatcherInterface* rm = nullptr;
|
|
switch (rc->type) {
|
|
case BATCH_CALL:
|
|
rm = server->unregistered_request_matcher;
|