mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 14:08:07 -05:00
tool_setopt: handle a libcurl build without netrc support
Reported-by: codesniffer13 on github Fixes #4302 Closes #4305
This commit is contained in:
parent
9069838b30
commit
74e152f119
@ -824,6 +824,16 @@ bool tool_setopt_skip(CURLoption tag)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CURL_DISABLE_NETRC
|
||||||
|
#define USED_TAG
|
||||||
|
switch(tag) {
|
||||||
|
case CURLOPT_NETRC:
|
||||||
|
case CURLOPT_NETRC_FILE:
|
||||||
|
return TRUE;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef USED_TAG
|
#ifndef USED_TAG
|
||||||
(void)tag;
|
(void)tag;
|
||||||
|
Loading…
Reference in New Issue
Block a user