diff options
author | Kamil Dudka <kdudka@redhat.com> | 2016-04-19 09:38:44 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2016-04-19 09:38:44 +0200 |
commit | ad3d40d40707f1c5f37f878a61de4a8f0aeac2b8 (patch) | |
tree | cc1cf160293e2be2216c6ce5bba2e801a19db913 /lib/connect.c | |
parent | a07727005a14e97c79c4a029db4569cd142fb5c6 (diff) | |
download | curl-ad3d40d40707f1c5f37f878a61de4a8f0aeac2b8.tar.gz |
connect: make sure that rc is initialized in singleipconnect()
This commit fixes a Clang warning introduced in curl-7_48_0-190-g8f72b13:
Error: CLANG_WARNING:
lib/connect.c:1120:11: warning: The right operand of '==' is a garbage value
1118| }
1119|
1120|-> if(-1 == rc)
1121| error = SOCKERRNO;
1122| }
Diffstat (limited to 'lib/connect.c')
-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 bfc22992c..6ed9b024a 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -1008,7 +1008,7 @@ static CURLcode singleipconnect(struct connectdata *conn, curl_socket_t *sockp) { struct Curl_sockaddr_ex addr; - int rc; + int rc = -1; int error = 0; bool isconnected = FALSE; struct SessionHandle *data = conn->data; |