Re: [Bug-wget] [PATCH 03/25] Bugfix: Fix NULL filename and output_stream in Metalink module

2016-09-12 Thread Matthew White
On Sun, 11 Sep 2016 21:59:12 +0200 Giuseppe Scrivano wrote: > Matthew White writes: > > > + */ > > + if (!output_stream && (output_stream = fopen (filename, > > "rb"))) > > +{ > > + fclose

Re: [Bug-wget] [PATCH 03/25] Bugfix: Fix NULL filename and output_stream in Metalink module

2016-09-11 Thread Giuseppe Scrivano
Matthew White writes: > + */ > + if (!output_stream && (output_stream = fopen (filename, "rb"))) > +{ > + fclose (output_stream); > + output_stream = fopen (filename, "ab"); > +}