1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

tool_setopt: handle a libcurl build without netrc support

Reported-by: codesniffer13 on github
Fixes #4302
Closes #4305
This commit is contained in:
Daniel Stenberg 2019-09-08 23:47:56 +02:00
parent 9069838b30
commit 74e152f119
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;