mirror of
https://github.com/curl/curl.git
synced 2026-07-23 03:57:16 +03: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
1 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue