mirror of
https://github.com/curl/curl.git
synced 2026-08-26 15:13:34 +03:00
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
This commit is contained in:
parent
d896184c9b
commit
9a47d77126
3 changed files with 10 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue