diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-08-04 23:22:48 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-08-04 23:25:55 +0200 |
commit | 5eb2396cd15cbbf73b02ad6bbcc313167330c2b5 (patch) | |
tree | c4abea378ed3ed30638caf652617b37a3ae6a836 /src | |
parent | 86b50a1fe5379c30cea7afdaef983050dc3b7413 (diff) | |
download | gnurl-5eb2396cd15cbbf73b02ad6bbcc313167330c2b5.tar.gz gnurl-5eb2396cd15cbbf73b02ad6bbcc313167330c2b5.tar.bz2 gnurl-5eb2396cd15cbbf73b02ad6bbcc313167330c2b5.zip |
segfault fixed
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
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 6dcf333a5..eae45dea0 100644 --- 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) { |