mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
connect.c: Fixed compilation warning
warning: 'res' may be used uninitialized in this function
This commit is contained in:
parent
5107d66b2e
commit
610a55388b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user