projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52707f9
)
Jörn fixed a multiple URL output bug
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 4 Dec 2000 12:21:18 +0000
(12:21 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 4 Dec 2000 12:21:18 +0000
(12:21 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
03a5444
..
ba5bcf9
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1473,9
+1473,9
@@
operate(struct Configurable *config, int argc, char *argv[])
#endif
}
for (i = 0; (url = next_url(urls)); ++i) {
- if (
outfiles
) {
+ if (
config->outfile
) {
free(config->outfile);
- config->outfile =
outfiles
;
+ config->outfile =
strdup(outfiles)
;
}
if (config->outfile || config->remotefile) {
@@
-1757,6
+1757,9
@@
operate(struct Configurable *config, int argc, char *argv[])
free(url);
}
+ if(outfiles)
+ free(outfiles);
+
#ifdef MIME_SEPARATORS
if (separator)
printf("--%s--\n", MIMEseparator);