diff options
author | Ken Payson <kpayson@google.com> | 2016-06-22 16:47:52 -0700 |
---|---|---|
committer | Ken Payson <kpayson@google.com> | 2016-06-22 16:47:52 -0700 |
commit | 8891ef50eef2e858b2290de36691c4b535de3acc (patch) | |
tree | 7f6c843716379ef67092fc14b42e69d1bffbd7ee | |
parent | 00ab5304b784b230053e49fd864477a845e80d5b (diff) |
Initialize port to -1
-rw-r--r-- | src/core/lib/iomgr/tcp_server_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_windows.c b/src/core/lib/iomgr/tcp_server_windows.c index 2a51671ec7..86982bc183 100644 --- a/src/core/lib/iomgr/tcp_server_windows.c +++ b/src/core/lib/iomgr/tcp_server_windows.c @@ -396,7 +396,7 @@ static grpc_error *add_socket_to_server(grpc_tcp_server *s, SOCKET sock, size_t addr_len, unsigned port_index, grpc_tcp_listener **listener) { grpc_tcp_listener *sp = NULL; - int port; + int port = -1; int status; GUID guid = WSAID_ACCEPTEX; DWORD ioctl_num_bytes; |