From 09a80805da7f7ed46eae1836cfec383238a991b9 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 31 Mar 2016 01:05:58 +0200 Subject: Initialize disabled document writing flags to zero Also remove redundant assignments. Fixes http://bugs.ghostscript.com/show_bug.cgi?id=695968 --- platform/x11/pdfapp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'platform/x11') diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 37ef2181..77b6244a 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -527,13 +527,9 @@ static int pdfapp_save(pdfapp_t *app) if (wingetsavepath(app, buf, PATH_MAX)) { - pdf_write_options opts; + pdf_write_options opts = { 0 }; opts.do_incremental = 1; - opts.do_ascii = 0; - opts.do_expand = 0; - opts.do_garbage = 0; - opts.do_linear = 0; if (strcmp(buf, app->docpath) != 0) { -- cgit v1.2.3