aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-25 11:27:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-25 11:27:06 +0000
commitec9acbcda7cf29658e717522bb98cff65eddbccb (patch)
tree1c2b4859a3f848617d0f23b9d6d4d380dcfe94c3
parentc0460660d5a0c8f2be98adf79d2f27b5fa8f707a (diff)
Andrés García found out that Curl_protocol_connect() could return an
uninitialized variable.
-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 */