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:
86b50a1
)
segfault fixed
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 4 Aug 2011 21:22:48 +0000
(23:22 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 4 Aug 2011 21:25:55 +0000
(23:25 +0200)
When using both -J and a single -O with multiple URLs, a missing init
could cause badness.
Bug: http://curl.haxx.se/mail/lib-2011-07/0126.html and
http://bugzilla.redhat.com/723075
Reported by: Paul Howarth and Garrett Holmstrom
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
6dcf333
..
eae45de
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-4898,6
+4898,7
@@
operate(struct Configurable *config, int argc, argv_item_t argv[])
outs.stream = stdout;
outs.config = config;
outs.bytes = 0; /* nothing written yet */
+ outs.filename = NULL;
/* save outfile pattern before expansion */
if(urlnode->outfile) {