mirror of
https://github.com/curl/curl.git
synced 2026-08-04 07:40:03 +03:00
cppcheck: fix warnings
- Get rid of variable that was generating false positive warning (unitialized) - Fix issues in tests - Reduce scope of several variables all over etc Closes #2631
This commit is contained in:
parent
38203f1585
commit
c45360d463
61 changed files with 213 additions and 273 deletions
|
|
@ -188,7 +188,6 @@ static CURLcode CONNECT(struct connectdata *conn,
|
|||
struct SingleRequest *k = &data->req;
|
||||
CURLcode result;
|
||||
curl_socket_t tunnelsocket = conn->sock[sockindex];
|
||||
timediff_t check;
|
||||
struct http_connect_state *s = conn->connect_state;
|
||||
|
||||
#define SELECT_OK 0
|
||||
|
|
@ -201,6 +200,7 @@ static CURLcode CONNECT(struct connectdata *conn,
|
|||
conn->bits.proxy_connect_closed = FALSE;
|
||||
|
||||
do {
|
||||
timediff_t check;
|
||||
if(TUNNEL_INIT == s->tunnel_state) {
|
||||
/* BEGIN CONNECT PHASE */
|
||||
char *host_port;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue