From 610a55388b5c8f6053252e700c771f9fcacad0ed Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 28 Dec 2013 19:44:07 +0000 Subject: [PATCH] connect.c: Fixed compilation warning warning: 'res' may be used uninitialized in this function --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connect.c b/lib/connect.c index 588ac28b5..33f7aec3d 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -1081,7 +1081,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ { struct SessionHandle *data = conn->data; struct timeval before = Curl_tvnow(); - CURLcode res; + CURLcode res = CURLE_COULDNT_CONNECT; long timeout_ms = Curl_timeleft(data, &before, TRUE);