mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08: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;
|
||||
}
|
||||
#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
|
||||
(void)tag;
|
||||
|
Loading…
Reference in New Issue
Block a user