Skip to content

Commit

Permalink
Remove redundant and problematic memset
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Aug 6, 2019
1 parent fc1e185 commit b99d3e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/ext/filters/client_idle/client_idle_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ void ChannelData::EnterIdle() {
GRPC_IDLE_FILTER_LOG("the channel will enter IDLE");
// Hold a ref to the channel stack for the transport op.
GRPC_CHANNEL_STACK_REF(channel_stack_, "idle transport op");
// Initialize the transport op.
memset(&idle_transport_op_, 0, sizeof(idle_transport_op_));
idle_transport_op_.disconnect_with_error = grpc_error_set_int(
GRPC_ERROR_CREATE_FROM_STATIC_STRING("enter idle"),
GRPC_ERROR_INT_CHANNEL_CONNECTIVITY_STATE, GRPC_CHANNEL_IDLE);
Expand Down

0 comments on commit b99d3e1

Please sign in to comment.