aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/socket_utils_common_posix.cc
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-08-21 17:16:28 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2018-08-21 17:16:28 -0700
commitdfe377eddc38faae3e4f604c7e27cec0c9a7d31c (patch)
tree88b4388a5da02db144a168bc5b27da1d3e5d6f51 /src/core/lib/iomgr/socket_utils_common_posix.cc
parentecee4ac703e909b4edd789e137e3b0b736dfe37a (diff)
Did not initialize len earlier
Diffstat (limited to 'src/core/lib/iomgr/socket_utils_common_posix.cc')
-rw-r--r--src/core/lib/iomgr/socket_utils_common_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/socket_utils_common_posix.cc b/src/core/lib/iomgr/socket_utils_common_posix.cc
index 5dc8fcb427..9b32089a92 100644
--- a/src/core/lib/iomgr/socket_utils_common_posix.cc
+++ b/src/core/lib/iomgr/socket_utils_common_posix.cc
@@ -228,7 +228,7 @@ grpc_error* grpc_set_socket_low_latency(int fd, int low_latency) {
grpc_error* grpc_set_socket_tcp_user_timeout(int fd, int val) {
#ifdef GRPC_HAVE_TCP_USER_TIMEOUT
int newval;
- socklen_t len;
+ socklen_t len = sizeof(newval);
if (val == 0) {
val = DEFAULT_TCP_USER_TIMEOUT;
}