]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_getparam: repair cleanarg
authorDaniel Stenberg <daniel@haxx.se>
Sun, 10 Jul 2022 13:22:13 +0000 (15:22 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 10 Jul 2022 13:49:14 +0000 (15:49 +0200)
commitbf7e887b2442783ab52ddf9d1348c52344fc96f1
tree4039bb4b3d933fe802d7d62853edaa25094b70e1
parenteab25898b36c727236358b2395d53241b31e06ba
tool_getparam: repair cleanarg

Regression since 9e5669f.

Make sure the "cleaning" of command line arguments is done on the
original argv[] pointers. As a bonus, it also exits better on out of
memory error.

Reported-by: Litter White
Fixes #9128
Closes #9130
src/tool_getparam.c
src/tool_getparam.h
src/tool_paramhlp.c
src/tool_paramhlp.h
src/tool_parsecfg.c