* ascii.c (struct ascii_driver_ext): New member reported_error.
authorBen Pfaff <blp@gnu.org>
Fri, 21 Sep 2007 14:12:57 +0000 (14:12 +0000)
committerBen Pfaff <blp@gnu.org>
Fri, 21 Sep 2007 14:12:57 +0000 (14:12 +0000)
commit02118dddfe989ca4fda5db5b54d64b1a564b6674
tree633add0afd53832492323bc5317c8560f9c4a620
parentddf093b6f8428a45a14a24aaf17417d30777d9a3
* ascii.c (struct ascii_driver_ext): New member reported_error.
(ascii_open_driver): Initialize reported_error.
(ascii_open_page): Initialize the rest of the ascii driver data
even if we fail to open the output file.  Fixes bug #21117.

* chart.c (chart_create): Initialize lp member.  Fixes crash if
chart initialization fails.

* html.c (html_open_driver): Don't free chart_file_name in error
case, since html_close_driver will do that.  Fixes crash if file
open fails.

* postscript.c (ps_close_driver): Don't try to write to file if
it's null.  Fixes crash if file open fails.
src/output/ascii.c
src/output/chart.c
src/output/html.c
src/output/postscript.c