Fix warning in client_idle_filter.cc to support gcc8

pull/20006/head
Hope Casey-Allen 5 years ago
parent 83e6044739
commit 257737f2c6
  1. 2
      src/core/ext/filters/client_idle/client_idle_filter.cc

@ -370,7 +370,7 @@ void ChannelData::EnterIdle() {
// 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_ = {};
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);

Loading…
Cancel
Save