diff options
author | Mark D. Roth <roth@google.com> | 2016-12-02 12:10:25 -0800 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-12-02 12:10:25 -0800 |
commit | a0bcfbbfe2378459a439a3344df59774e32cd774 (patch) | |
tree | 516e48026759dfc515a08d12162e7d0d92a35efb /src/core/ext/transport/chttp2 | |
parent | 3e9ba863773962a2aef631334cd4511487c02f93 (diff) |
Fix Windows build problem.
Diffstat (limited to 'src/core/ext/transport/chttp2')
-rw-r--r-- | src/core/ext/transport/chttp2/server/chttp2_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/server/chttp2_server.c b/src/core/ext/transport/chttp2/server/chttp2_server.c index 9282d7ef89..50cbafab56 100644 --- a/src/core/ext/transport/chttp2/server/chttp2_server.c +++ b/src/core/ext/transport/chttp2/server/chttp2_server.c @@ -262,6 +262,7 @@ grpc_error *grpc_chttp2_server_add_port( int port_temp; grpc_error *err = GRPC_ERROR_NONE; server_state *state = NULL; + grpc_error **errors = NULL; *port_num = -1; @@ -289,7 +290,7 @@ grpc_error *grpc_chttp2_server_add_port( gpr_mu_init(&state->mu); const size_t naddrs = resolved->naddrs; - grpc_error **errors = gpr_malloc(sizeof(*errors) * naddrs); + errors = gpr_malloc(sizeof(*errors) * naddrs); for (i = 0; i < naddrs; i++) { errors[i] = grpc_tcp_server_add_port(tcp_server, &resolved->addrs[i], &port_temp); |