aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar Soheil Hassas Yeganeh <soheil@google.com>2018-10-06 21:05:44 -0400
committerGravatar Soheil Hassas Yeganeh <soheil@google.com>2018-10-06 21:05:44 -0400
commit2699e1c5dae3362acd7f948b525021172fae0be9 (patch)
treee6e2ad076839c322a692ed522614470fb731f071 /src/core/lib
parent3b26fe7262a9db90dfb69f84ad582d9f71871a5c (diff)
Make link_head consistent with link_tail.
This is a tiny change I note while removing memset() calls. link_head doesn't set the reserved pointer while link_tail (correctly) does.
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/transport/metadata_batch.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/transport/metadata_batch.cc b/src/core/lib/transport/metadata_batch.cc
index 761aad19c4..928ed73cda 100644
--- a/src/core/lib/transport/metadata_batch.cc
+++ b/src/core/lib/transport/metadata_batch.cc
@@ -139,6 +139,7 @@ static void link_head(grpc_mdelem_list* list, grpc_linked_mdelem* storage) {
GPR_ASSERT(!GRPC_MDISNULL(storage->md));
storage->prev = nullptr;
storage->next = list->head;
+ storage->reserved = nullptr;
if (list->head != nullptr) {
list->head->prev = storage;
} else {