diff options
author | MAntoniak <47522782+MAntoniak@users.noreply.github.com> | 2021-07-17 17:43:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-07-18 18:37:05 +0200 |
commit | 9a47d7712611f035e1e9f762bb4b94207c50ec24 (patch) | |
tree | e9159a18c2f0370eba7803cd298cbcc8a6040198 /lib/http.c | |
parent | d896184c9b891998baee9e6934dd47dc64debe45 (diff) | |
download | curl-9a47d7712611f035e1e9f762bb4b94207c50ec24.tar.gz |
lib: fix compiler warnings with CURL_DISABLE_NETRC
warning C4189: 'netrc_user_changed': local variable is initialized but
not referenced
warning C4189: 'netrc_passwd_changed': local variable is initialized but
not referenced
Closes #7423
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index 4d5d17665..05b971b20 100644 --- a/lib/http.c +++ b/lib/http.c @@ -850,7 +850,9 @@ Curl_http_output_auth(struct Curl_easy *data, /* To prevent the user+password to get sent to other than the original host due to a location-follow, we do some weirdo checks here */ if(!data->state.this_is_a_follow || +#ifndef CURL_DISABLE_NETRC conn->bits.netrc || +#endif !data->state.first_host || data->set.allow_auth_to_other_hosts || strcasecompare(data->state.first_host, conn->host.name)) { |