Skip to content
Permalink
Browse files

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
  • Loading branch information...
bagder committed Aug 4, 2011
1 parent 86b50a1 commit 5eb2396cd15cbbf73b02ad6bbcc313167330c2b5
Showing with 1 addition and 0 deletions.
  1. +1 −0 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) {

0 comments on commit 5eb2396

Please sign in to comment.
You can’t perform that action at this time.