tool_operate: fix compiler warning when --libcurl is disabled

Closes #6095
This commit is contained in:
Daniel Stenberg 2020-10-15 22:57:27 +02:00
parent 475c1aba68
commit c5ff3fb2cd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ static CURLcode pre_transfer(struct GlobalConfig *global,
if(uploadfilesize != -1) {
struct OperationConfig *config = per->config; /* for the macro below */
#ifdef CURL_DISABLE_LIBCURL_OPTION
(void)config;
#endif
my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize);
}
per->input.fd = per->infd;