summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-08 23:47:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-08 23:47:56 +0200
commit0589bab57351a3babdc7ec5abc97f928cbc3a250 (patch)
tree766db512bd896b82df8fe2a842f6fe67e0419629
parent0f37c8df12aec70fd8043cee650d9b13ca016737 (diff)
downloadcurl-bagder/curl-disabled-netrc.tar.gz
tool_setopt: handle a libcurl build without netrc supportbagder/curl-disabled-netrc
Reported-by: codesniffer13 on github Fixes #4302
-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;