Fix uninitialized variables

This commit is contained in:
Max Lv
2017-11-28 10:33:26 +08:00
parent aebb79c222
commit 79f0e3c68d
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -507,8 +507,7 @@ connect_to_remote(EV_P_ struct addrinfo *res,
remote_t *remote = new_remote(sockfd);
if (fast_open) {
int s;
int s = -1;
#if defined(MSG_FASTOPEN) && !defined(TCP_FASTOPEN_CONNECT)
s = sendto(sockfd, server->buf->data, server->buf->len,
MSG_FASTOPEN, res->ai_addr, res->ai_addrlen);