]> git.ipfire.org Git - thirdparty/curl.git/commit
ftp: allocate the wildcard struct on demand
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Feb 2023 22:57:23 +0000 (23:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Mar 2023 22:25:23 +0000 (23:25 +0100)
commit9c188e771c9d5ecbdb04cbc9f3936bb9f52f78c9
tree8e80174942206e34a4d3b2d478847a537b5ecf3c
parentc84c0f9aa3bb0068bd6cbf6fce77bacccececa75
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
lib/ftp.c
lib/ftplistparser.c
lib/multi.c
lib/transfer.c
lib/urldata.h
lib/wildcard.c
lib/wildcard.h