Andrés García found out that Curl_protocol_connect() could return an
authorDaniel Stenberg <daniel@haxx.se>
Wed, 25 Sep 2002 11:27:06 +0000 (11:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Sep 2002 11:27:06 +0000 (11:27 +0000)
uninitialized variable.

lib/url.c

index abca0b9..bbf9e4b 100644 (file)
--- 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 */