summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/base/tcp_client_socket_libevent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/tcp_client_socket_libevent.cc b/net/base/tcp_client_socket_libevent.cc
index e9f2308..b117f7d 100644
--- a/net/base/tcp_client_socket_libevent.cc
+++ b/net/base/tcp_client_socket_libevent.cc
@@ -259,7 +259,7 @@ void TCPClientSocket::DidCompleteConnect() {
}
void TCPClientSocket::DidCompleteIO() {
- int bytes_transferred;
+ int bytes_transferred = -1;
switch (wait_state_) {
case WAITING_READ:
bytes_transferred = read(socket_, buf_, buf_len_);