Skip to content
Permalink
Browse files

tool_setopt: handle a libcurl build without netrc support

Reported-by: codesniffer13 on github
Fixes #4302
Closes #4305
  • Loading branch information...
bagder committed Sep 8, 2019
1 parent 9069838 commit 74e152f11915cdd46792daf5c5728be1b0dd9503
Showing with 10 additions and 0 deletions.
  1. +10 −0 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;

0 comments on commit 74e152f

Please sign in to comment.
You can’t perform that action at this time.