diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-12-28 19:44:07 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-12-28 19:44:07 +0000 |
commit | 610a55388b5c8f6053252e700c771f9fcacad0ed (patch) | |
tree | 02637aa085a235e215b83de0521c6ca42ded1ff9 /lib | |
parent | 5107d66b2ecdea003ecc8b80a7063475495ab994 (diff) |
connect.c: Fixed compilation warning
warning: 'res' may be used uninitialized in this function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 588ac28b5..33f7aec3d 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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); |