connect.c: Fixed compilation warning

warning: 'res' may be used uninitialized in this function
This commit is contained in:
Steve Holme 2013-12-28 19:44:07 +00:00
parent 5107d66b2e
commit 610a55388b
1 changed files with 1 additions and 1 deletions

View 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);