explicitly initialize all grpc_pollset fields (epollex)

pull/14177/head
Jan Tattermusch 7 years ago
parent 6fe650908f
commit 0a6d900524
  1. 5
      src/core/lib/iomgr/ev_epollex_linux.cc

@ -679,6 +679,11 @@ static grpc_error* pollset_kick_all(grpc_pollset* pollset) {
static void pollset_init(grpc_pollset* pollset, gpr_mu** mu) { static void pollset_init(grpc_pollset* pollset, gpr_mu** mu) {
gpr_mu_init(&pollset->mu); gpr_mu_init(&pollset->mu);
pollset->active_pollable = POLLABLE_REF(g_empty_pollable, "pollset"); pollset->active_pollable = POLLABLE_REF(g_empty_pollable, "pollset");
pollset->kicked_without_poller = false;
pollset->shutdown_closure = nullptr;
pollset->already_shutdown = false;
pollset->root_worker = nullptr;
pollset->containing_pollset_set_count = 0;
*mu = &pollset->mu; *mu = &pollset->mu;
} }

Loading…
Cancel
Save