curl: actually append "-" to --range without number only

Closes #7837
This commit is contained in:
Борис Верховский 2021-10-10 05:29:51 -06:00 committed by Daniel Stenberg
parent 1edc423883
commit 8758a26f88
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2082,7 +2082,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
if(!config->range)
return PARAM_NO_MEM;
}
{
else {
/* byte range requested */
const char *tmp_range = nextarg;
while(*tmp_range != '\0') {
@ -2095,7 +2095,6 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
}
tmp_range++;
}
/* byte range requested */
GetStr(&config->range, nextarg);
}
break;