aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-08 23:47:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-09 08:18:58 +0200
commit74e152f11915cdd46792daf5c5728be1b0dd9503 (patch)
treea003832210ea2767cf258a61d430d31ffba35c62 /src
parent9069838b30fb3b48af0123e39f664cea683254a5 (diff)
tool_setopt: handle a libcurl build without netrc support
Reported-by: codesniffer13 on github Fixes #4302 Closes #4305
Diffstat (limited to 'src')
-rw-r--r--src/tool_setopt.c10
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;