aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index abca0b986..bbf9e4bbc 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1646,7 +1646,7 @@ CURLcode Curl_protocol_connect(struct connectdata *conn,
Curl_addrinfo *hostaddr)
{
struct SessionHandle *data = conn->data;
- CURLcode result;
+ CURLcode result=CURLE_OK;
Curl_pgrsTime(data, TIMER_CONNECT); /* connect done */