1
0
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:
Daniel Stenberg 2001-01-19 12:14:09 +00:00
parent 133eb220b9
commit c2dbf21459

View File

@ -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;