]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_urlglob: polish, cleanups, improvements
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Aug 2025 14:00:20 +0000 (16:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 6 Aug 2025 06:47:53 +0000 (08:47 +0200)
commit034612cd515f249453a435f3d94b04f65744a54d
tree5bcd42944da873b5550c76169d924a1f9900abc2
parent6d5570c4dd0a874730ccfdbe885017b77dab7ffc
tool_urlglob: polish, cleanups, improvements

- assert instead of printing "internal error" for unlikely events
- avoid allocating the main struct
- convert globerror() from macro to function
- renames to shorter and clearer names
- malloc + copy => memdup0
- change buffer handling to dynbuf
- realloc to handle more globs, but use less memory for few

Closes #18198
src/tool_cfgable.h
src/tool_operate.c
src/tool_urlglob.c
src/tool_urlglob.h