mirror of
https://github.com/curl/curl.git
synced 2026-08-26 07:33:31 +03:00
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
This commit is contained in:
parent
eab25898b3
commit
bf7e887b24
5 changed files with 45 additions and 38 deletions
|
|
@ -54,7 +54,8 @@ typedef enum {
|
|||
struct GlobalConfig;
|
||||
struct OperationConfig;
|
||||
|
||||
ParameterError getparameter(const char *flag, char *nextarg, bool *usedarg,
|
||||
ParameterError getparameter(const char *flag, char *nextarg, char *clearthis,
|
||||
bool *usedarg,
|
||||
struct GlobalConfig *global,
|
||||
struct OperationConfig *operation);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue