aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index de78c33e2..826ec251d 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -551,7 +551,7 @@ static CURLcode trynextip(struct connectdata *conn,
if(sockindex == FIRSTSOCKET) {
Curl_addrinfo *ai = NULL;
- int family;
+ int family = AF_UNSPEC;
if(conn->tempaddr[tempindex]) {
/* find next address in the same protocol family */