mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -05:00
single_transfer: ignore blank --output-dir
... as otherwise it creates a rather unexpected target directory with a leading slash. Reported-by: Harry Sintonen Fixes #7218 Closes #7233
This commit is contained in:
parent
a15d146f47
commit
2784a585b3
@ -970,7 +970,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
||||
}
|
||||
}
|
||||
|
||||
if(config->output_dir) {
|
||||
if(config->output_dir && *config->output_dir) {
|
||||
char *d = aprintf("%s/%s", config->output_dir, per->outfile);
|
||||
if(!d) {
|
||||
result = CURLE_WRITE_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user