]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
connect.c: Fixed compilation warning
authorSteve Holme <steve_holme@hotmail.com>
Sat, 28 Dec 2013 19:44:07 +0000 (19:44 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 28 Dec 2013 19:44:07 +0000 (19:44 +0000)
warning: 'res' may be used uninitialized in this function

lib/connect.c

index 588ac28b5588aab9578abe1731a90c1c6eac56ac..33f7aec3df5be1e7ee5c1bace1af3af08bc07191 100644 (file)
@@ -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);