mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +03:00
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| }
This commit is contained in:
parent
a07727005a
commit
ad3d40d407
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue