wildcard: disable from build when FTP isn't present

This commit is contained in:
Daniel Stenberg 2019-05-05 17:08:21 +02:00
parent 7c70a3b1ad
commit 0e2208ada6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 28 additions and 6 deletions

View file

@ -1506,6 +1506,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
data->state.authhost.picked &= data->state.authhost.want;
data->state.authproxy.picked &= data->state.authproxy.want;
#ifndef CURL_DISABLE_FTP
if(data->state.wildcardmatch) {
struct WildcardData *wc = &data->wildcard;
if(wc->state < CURLWC_INIT) {
@ -1514,6 +1515,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
return CURLE_OUT_OF_MEMORY;
}
}
#endif
}
return result;