mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
corrected url memory handling with --globoff
This commit is contained in:
parent
133eb220b9
commit
c2dbf21459
@ -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…
x
Reference in New Issue
Block a user