mirror of
https://github.com/curl/curl.git
synced 2026-06-03 21:04:16 +03:00
fixed a strdup(NULL) error
This commit is contained in:
parent
5d44f00201
commit
ec420c62d9
1 changed files with 1 additions and 1 deletions
|
|
@ -1475,7 +1475,7 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||
for (i = 0; (url = next_url(urls)); ++i) {
|
||||
if (config->outfile) {
|
||||
free(config->outfile);
|
||||
config->outfile = strdup(outfiles);
|
||||
config->outfile = outfiles?strdup(outfiles):NULL;
|
||||
}
|
||||
|
||||
if (config->outfile || config->remotefile) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue