mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08: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