|  | 
| 1 |  | -diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.cc b/src/core/ext/transport/chttp2/transport/hpack_parser.cc | 
| 2 |  | -index 31bf464..d1007e4 100644 | 
| 3 |  | ---- a/src/core/ext/transport/chttp2/transport/hpack_parser.cc | 
| 4 |  | -+++ b/src/core/ext/transport/chttp2/transport/hpack_parser.cc | 
| 5 |  | -@@ -689,7 +689,7 @@ class HPackParser::Parser { | 
| 6 |  | -   } | 
| 7 |  | -  | 
| 8 |  | -   void GPR_ATTRIBUTE_NOINLINE LogHeader(const HPackTable::Memento& memento) { | 
| 9 |  | --    const char* type; | 
| 10 |  | -+    const char* type = nullptr; | 
| 11 |  | -     switch (log_info_.type) { | 
| 12 |  | -       case LogInfo::kHeaders: | 
| 13 |  | -         type = "HDR"; | 
| 14 |  | -diff --git a/src/core/lib/slice/slice.cc b/src/core/lib/slice/slice.cc | 
| 15 |  | -index 6180ef1..a8e8110 100644 | 
| 16 |  | ---- a/src/core/lib/slice/slice.cc | 
| 17 |  | -+++ b/src/core/lib/slice/slice.cc | 
| 18 |  | -@@ -188,6 +188,7 @@ grpc_slice grpc_slice_from_moved_buffer(grpc_core::UniquePtr<char> p, | 
| 19 |  | -                                         size_t len) { | 
| 20 |  | -   uint8_t* ptr = reinterpret_cast<uint8_t*>(p.get()); | 
| 21 |  | -   grpc_slice slice; | 
| 22 |  | -+  memset(&slice, 0, sizeof(grpc_slice)); | 
| 23 |  | -   if (len <= sizeof(slice.data.inlined.bytes)) { | 
| 24 |  | -     slice.refcount = nullptr; | 
| 25 |  | -     slice.data.inlined.length = len; | 
| 26 |  | -@@ -206,7 +207,7 @@ grpc_slice grpc_slice_from_moved_string(grpc_core::UniquePtr<char> p) { | 
| 27 |  | - } | 
| 28 |  | -  | 
| 29 |  | - grpc_slice grpc_slice_from_cpp_string(std::string str) { | 
| 30 |  | --  grpc_slice slice; | 
| 31 |  | -+  grpc_slice slice = { 0 }; | 
| 32 |  | -   if (str.size() <= sizeof(slice.data.inlined.bytes)) { | 
| 33 |  | -     slice.refcount = nullptr; | 
| 34 |  | -     slice.data.inlined.length = str.size(); | 
| 35 |  | -diff --git a/src/core/lib/surface/server.cc b/src/core/lib/surface/server.cc | 
| 36 |  | -index 3dda49d..202caa5 100644 | 
| 37 |  | ---- a/src/core/lib/surface/server.cc | 
| 38 |  | -+++ b/src/core/lib/surface/server.cc | 
| 39 |  | -@@ -1057,7 +1057,7 @@ grpc_call_error Server::QueueRequestedCall(size_t cq_idx, RequestedCall* rc) { | 
| 40 |  | -     FailCall(cq_idx, rc, GRPC_ERROR_CREATE("Server Shutdown")); | 
| 41 |  | -     return GRPC_CALL_OK; | 
| 42 |  | -   } | 
| 43 |  | --  RequestMatcherInterface* rm; | 
| 44 |  | -+  RequestMatcherInterface* rm = nullptr; | 
| 45 |  | -   switch (rc->type) { | 
| 46 |  | -     case RequestedCall::Type::BATCH_CALL: | 
| 47 |  | -       rm = unregistered_request_matcher_.get(); | 
|  | 1 | +diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.cc b/src/core/ext/transport/chttp2/transport/hpack_parser.cc | 
|  | 2 | +index 84b4e86279..4921002887 100644 | 
|  | 3 | +--- a/src/core/ext/transport/chttp2/transport/hpack_parser.cc | 
|  | 4 | ++++ b/src/core/ext/transport/chttp2/transport/hpack_parser.cc | 
|  | 5 | +@@ -688,7 +688,7 @@ class HPackParser::Parser { | 
|  | 6 | +   } | 
|  | 7 | +  | 
|  | 8 | +   void GPR_ATTRIBUTE_NOINLINE LogHeader(const HPackTable::Memento& memento) { | 
|  | 9 | +-    const char* type; | 
|  | 10 | ++    const char* type = nullptr; | 
|  | 11 | +     switch (log_info_.type) { | 
|  | 12 | +       case LogInfo::kHeaders: | 
|  | 13 | +         type = "HDR"; | 
|  | 14 | +diff --git a/src/core/lib/slice/slice.cc b/src/core/lib/slice/slice.cc | 
|  | 15 | +index f2d49e0bf4..c86a75f1a3 100644 | 
|  | 16 | +--- a/src/core/lib/slice/slice.cc | 
|  | 17 | ++++ b/src/core/lib/slice/slice.cc | 
|  | 18 | +@@ -189,6 +189,7 @@ grpc_slice grpc_slice_from_moved_buffer(grpc_core::UniquePtr<char> p, | 
|  | 19 | +                                         size_t len) { | 
|  | 20 | +   uint8_t* ptr = reinterpret_cast<uint8_t*>(p.get()); | 
|  | 21 | +   grpc_slice slice; | 
|  | 22 | ++  memset(&slice, 0, sizeof(grpc_slice)); | 
|  | 23 | +   if (len <= sizeof(slice.data.inlined.bytes)) { | 
|  | 24 | +     slice.refcount = nullptr; | 
|  | 25 | +     slice.data.inlined.length = len; | 
|  | 26 | +@@ -207,7 +208,7 @@ grpc_slice grpc_slice_from_moved_string(grpc_core::UniquePtr<char> p) { | 
|  | 27 | + } | 
|  | 28 | +  | 
|  | 29 | + grpc_slice grpc_slice_from_cpp_string(std::string str) { | 
|  | 30 | +-  grpc_slice slice; | 
|  | 31 | ++  grpc_slice slice = { 0 }; | 
|  | 32 | +   if (str.size() <= sizeof(slice.data.inlined.bytes)) { | 
|  | 33 | +     slice.refcount = nullptr; | 
|  | 34 | +     slice.data.inlined.length = str.size(); | 
|  | 35 | +diff --git a/src/core/server/server.cc b/src/core/server/server.cc | 
|  | 36 | +index c4796d6ae9..6a0289d180 100644 | 
|  | 37 | +--- a/src/core/server/server.cc | 
|  | 38 | ++++ b/src/core/server/server.cc | 
|  | 39 | +@@ -1284,7 +1284,7 @@ grpc_call_error Server::QueueRequestedCall(size_t cq_idx, RequestedCall* rc) { | 
|  | 40 | +     FailCall(cq_idx, rc, GRPC_ERROR_CREATE("Server Shutdown")); | 
|  | 41 | +     return GRPC_CALL_OK; | 
|  | 42 | +   } | 
|  | 43 | +-  RequestMatcherInterface* rm; | 
|  | 44 | ++  RequestMatcherInterface* rm = nullptr; | 
|  | 45 | +   switch (rc->type) { | 
|  | 46 | +     case RequestedCall::Type::BATCH_CALL: | 
|  | 47 | +       rm = unregistered_request_matcher_.get(); | 
0 commit comments