aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-12-18 11:36:09 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-12-18 11:36:09 -0800
commit9a7eec0c455b3f6db9c1d06e73398a330e2c0729 (patch)
treee4979c99d87a4e3a47f7f95ed33e01e28e521cf1
parent9544cc39b81e17aebc74d558138fa95f1d6af65f (diff)
Suppress compiler error by initializing sent_length
-rw-r--r--src/core/lib/iomgr/tcp_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_posix.cc b/src/core/lib/iomgr/tcp_posix.cc
index 211ae011cb..c268c18664 100644
--- a/src/core/lib/iomgr/tcp_posix.cc
+++ b/src/core/lib/iomgr/tcp_posix.cc
@@ -818,7 +818,7 @@ static bool tcp_flush(grpc_tcp* tcp, grpc_error** error) {
struct msghdr msg;
struct iovec iov[MAX_WRITE_IOVEC];
msg_iovlen_type iov_size;
- ssize_t sent_length;
+ ssize_t sent_length = 0;
size_t sending_length;
size_t trailing;
size_t unwind_slice_idx;