Skip to content
Snippets Groups Projects
Commit c2dbf214 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

corrected url memory handling with --globoff

parent 133eb220
No related branches found
No related tags found
No related merge requests found
...@@ -1579,7 +1579,9 @@ operate(struct Configurable *config, int argc, char *argv[]) ...@@ -1579,7 +1579,9 @@ operate(struct Configurable *config, int argc, char *argv[])
/* multiple files extracted to stdout, insert separators! */ /* multiple files extracted to stdout, insert separators! */
separator = 1; 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; char *outfile;
outfile = outfiles?strdup(outfiles):NULL; outfile = outfiles?strdup(outfiles):NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment