mirror of
https://github.com/curl/curl.git
synced 2026-04-20 23:01:14 +03:00
tool_getparam: error if --next is used without a prior URL
Reported-by: 積丹尼 Dan Jacobson Ref: https://github.com/curl/curl/pull/10769#discussion_r1137895629 Closes #10782
This commit is contained in:
parent
f7a3fae4cb
commit
e2452cf60e
1 changed files with 4 additions and 0 deletions
|
|
@ -2526,6 +2526,10 @@ ParameterError parse_args(struct GlobalConfig *global, int argc,
|
|||
else
|
||||
result = PARAM_NO_MEM;
|
||||
}
|
||||
else {
|
||||
errorf(global, "missing URL before --next\n");
|
||||
result = PARAM_BAD_USE;
|
||||
}
|
||||
}
|
||||
else if(!result && passarg)
|
||||
i++; /* we're supposed to skip this */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue