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 --- source/tools/pdfclean.c | 7 ------- source/tools/pdfposter.c | 6 ------ 2 files changed, 13 deletions(-) (limited to 'source/tools') diff --git a/source/tools/pdfclean.c b/source/tools/pdfclean.c index 8d599de9..94e2b91b 100644 --- a/source/tools/pdfclean.c +++ b/source/tools/pdfclean.c @@ -41,15 +41,8 @@ int pdfclean_main(int argc, char **argv) int errors = 0; fz_context *ctx; - opts.do_incremental = 0; - opts.do_garbage = 0; - opts.do_expand = 0; - opts.do_ascii = 0; - opts.do_deflate = 0; - opts.do_linear = 0; opts.continue_on_error = 1; opts.errors = &errors; - opts.do_clean = 0; while ((c = fz_getopt(argc, argv, "adfgilp:sz")) != -1) { diff --git a/source/tools/pdfposter.c b/source/tools/pdfposter.c index a598fb21..0393f137 100644 --- a/source/tools/pdfposter.c +++ b/source/tools/pdfposter.c @@ -161,12 +161,6 @@ int pdfposter_main(int argc, char **argv) pdf_document *doc; fz_context *ctx; - opts.do_incremental = 0; - opts.do_garbage = 0; - opts.do_expand = 0; - opts.do_ascii = 0; - opts.do_linear = 0; - while ((c = fz_getopt(argc, argv, "x:y:")) != -1) { switch (c) -- cgit v1.2.3