mirror of
https://github.com/curl/curl.git
synced 2026-05-19 17:46:21 +03:00
corrected url memory handling with --globoff
This commit is contained in:
parent
133eb220b9
commit
c2dbf21459
1 changed files with 3 additions and 1 deletions
|
|
@ -1579,7 +1579,9 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||
/* multiple files extracted to stdout, insert separators! */
|
||||
separator = 1;
|
||||
}
|
||||
for (i = 0; (url = urls?next_url(urls):(i?NULL:url)); ++i) {
|
||||
for(i = 0;
|
||||
(url = urls?next_url(urls):(i?NULL:strdup(url)));
|
||||
i++) {
|
||||
char *outfile;
|
||||
outfile = outfiles?strdup(outfiles):NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue