diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-09-08 23:47:56 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-09 08:18:58 +0200 |
commit | 74e152f11915cdd46792daf5c5728be1b0dd9503 (patch) | |
tree | a003832210ea2767cf258a61d430d31ffba35c62 | |
parent | 9069838b30fb3b48af0123e39f664cea683254a5 (diff) | |
download | curl-74e152f11915cdd46792daf5c5728be1b0dd9503.tar.gz |
tool_setopt: handle a libcurl build without netrc support
Reported-by: codesniffer13 on github
Fixes #4302
Closes #4305
-rw-r--r-- | src/tool_setopt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c index 871e25c01..4c98d9057 100644 --- a/src/tool_setopt.c +++ b/src/tool_setopt.c @@ -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; |