aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport/metadata_batch.h
diff options
context:
space:
mode:
authorGravatar Soheil Hassas Yeganeh <soheil@cs.toronto.edu>2018-11-05 12:10:03 -0500
committerGravatar GitHub <noreply@github.com>2018-11-05 12:10:03 -0500
commitb41a44dc2e001358602e8e885c674ddc49387edd (patch)
treed2f0c6d01ea7f47daebc288969032572b604af87 /src/core/lib/transport/metadata_batch.h
parent7109bd1c6563c09daa7b36139170a9f41d603ddf (diff)
parent48e4a81b05f2ad6541d72e819cd4f638055f13d5 (diff)
Merge pull request #16944 from soheilhy/worktree-memset
Remove memset(0) from arena allocate memory.
Diffstat (limited to 'src/core/lib/transport/metadata_batch.h')
-rw-r--r--src/core/lib/transport/metadata_batch.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/lib/transport/metadata_batch.h b/src/core/lib/transport/metadata_batch.h
index 0bcbb32d1f..f6e8bbf205 100644
--- a/src/core/lib/transport/metadata_batch.h
+++ b/src/core/lib/transport/metadata_batch.h
@@ -31,9 +31,11 @@
#include "src/core/lib/transport/static_metadata.h"
typedef struct grpc_linked_mdelem {
+ grpc_linked_mdelem() {}
+
grpc_mdelem md;
- struct grpc_linked_mdelem* next;
- struct grpc_linked_mdelem* prev;
+ struct grpc_linked_mdelem* next = nullptr;
+ struct grpc_linked_mdelem* prev = nullptr;
void* reserved;
} grpc_linked_mdelem;