summaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-02-27 23:57:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-03-03 23:25:23 +0100
commit9c188e771c9d5ecbdb04cbc9f3936bb9f52f78c9 (patch)
tree8e80174942206e34a4d3b2d478847a537b5ecf3c /lib/urldata.h
parentc84c0f9aa3bb0068bd6cbf6fce77bacccececa75 (diff)
downloadcurl-9c188e771c9d5ecbdb04cbc9f3936bb9f52f78c9.tar.gz
ftp: allocate the wildcard struct on demand
The feature is rarely used so this frees up data for the vast majority of easy handles that don't use it. Rename "protdata" to "ftpwc" since it is always an FTP wildcard struct pointer. Made the state struct field an unsigned char to save space. Closes #10639
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index d7d104d41..6df811dba 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1939,7 +1939,7 @@ struct Curl_easy {
struct UrlState state; /* struct for fields used for state info and
other dynamic purposes */
#ifndef CURL_DISABLE_FTP
- struct WildcardData wildcard; /* wildcard download state info */
+ struct WildcardData *wildcard; /* wildcard download state info */
#endif
struct PureInfo info; /* stats, reports and info data */
struct curl_tlssessioninfo tsi; /* Information about the TLS session, only