mirror of
https://github.com/curl/curl.git
synced 2026-07-09 00:37:15 +03:00
tool_operate: keep the filename for upload globbing
Follow-up to 19695e815c
Verify with test 2012 and 2013
Closes #21401
This commit is contained in:
parent
779bba2f3f
commit
dcf535629b
4 changed files with 189 additions and 3 deletions
|
|
@ -1076,8 +1076,9 @@ static CURLcode setup_outfile(struct OperationConfig *config,
|
|||
}
|
||||
}
|
||||
else {
|
||||
per->outfile = u->outfile;
|
||||
u->outfile = NULL;
|
||||
per->outfile = curlx_strdup(u->outfile);
|
||||
if(!per->outfile)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
DEBUGASSERT(per->outfile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue