1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

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

View File

@ -1081,7 +1081,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
{ {
struct SessionHandle *data = conn->data; struct SessionHandle *data = conn->data;
struct timeval before = Curl_tvnow(); struct timeval before = Curl_tvnow();
CURLcode res; CURLcode res = CURLE_COULDNT_CONNECT;
long timeout_ms = Curl_timeleft(data, &before, TRUE); long timeout_ms = Curl_timeleft(data, &before, TRUE);