diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-07 09:53:00 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-07 09:53:00 -0800 |
commit | 702a445dc199bd3308bbb70b94ef50386cedd215 (patch) | |
tree | b600583c5081045778e71dcaaf495a308dc4d21c /src/core/lib/iomgr | |
parent | f26236a159300c92633fafd0a906691165bc3289 (diff) |
Fix initialization
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r-- | src/core/lib/iomgr/tcp_server_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_posix.c b/src/core/lib/iomgr/tcp_server_posix.c index b93e9c410a..a17f6d48ef 100644 --- a/src/core/lib/iomgr/tcp_server_posix.c +++ b/src/core/lib/iomgr/tcp_server_posix.c @@ -163,7 +163,7 @@ grpc_error *grpc_tcp_server_create(grpc_exec_ctx *exec_ctx, grpc_tcp_server **server) { gpr_once_init(&check_init, init); - grpc_tcp_server *s = gpr_malloc(sizeof(grpc_tcp_server)); + grpc_tcp_server *s = gpr_zalloc(sizeof(grpc_tcp_server)); s->so_reuseport = has_so_reuseport; s->resource_quota = grpc_resource_quota_create(NULL); s->expand_wildcard_addrs = false; |