diff options
author | Craig Tiller <ctiller@google.com> | 2016-12-28 16:11:38 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-12-28 16:11:38 -0800 |
commit | 3cb3447e49b81dc2e4dcb66170eda3b04766eaba (patch) | |
tree | 9346c255e7f5db6f4e1c7e1595cbef430b33703a /src/core/lib/surface | |
parent | 91031dacb1ff5c57500307044b18c9f929134462 (diff) |
Fix some uninitialized variables
Diffstat (limited to 'src/core/lib/surface')
-rw-r--r-- | src/core/lib/surface/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c index d143ad9607..78699e9e65 100644 --- a/src/core/lib/surface/server.c +++ b/src/core/lib/surface/server.c @@ -441,8 +441,8 @@ static void destroy_channel(grpc_exec_ctx *exec_ctx, channel_data *chand, orphan_channel(chand); server_ref(chand->server); maybe_finish_shutdown(exec_ctx, chand->server); - chand->finish_destroy_channel_closure.cb = finish_destroy_channel; - chand->finish_destroy_channel_closure.cb_arg = chand; + grpc_closure_init(&chand->finish_destroy_channel_closure, + finish_destroy_channel, chand, grpc_schedule_on_exec_ctx); if (grpc_server_channel_trace && error != GRPC_ERROR_NONE) { const char *msg = grpc_error_string(error); |