]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_operate: simplify single_transfer
authorDaniel Stenberg <daniel@haxx.se>
Tue, 29 Jul 2025 11:29:25 +0000 (13:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Jul 2025 14:15:05 +0000 (16:15 +0200)
commitb2ccfbf2fbdf1c22abf6c43882d1d5b84ab88bbf
tree77df53e77fb7174230af798438e79e40a0b6164d
parent6b70e8a838ae99d3e3fd1e828c4e96c63b894833
tool_operate: simplify single_transfer

- let the caller do the cleanup on fail
- avoid gotos and use direct returns more
- use while() loop

Closes #18077
src/tool_cfgable.h
src/tool_operate.c
src/tool_operhlp.c