summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-03-31 01:05:58 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-03-31 13:01:36 +0200
commit09a80805da7f7ed46eae1836cfec383238a991b9 (patch)
tree4b2c1da2fa85402147e7954922f0dafc6f81e61b /source/tools
parentf8b35b0fe546c9f34626155f19dafe16a8f82829 (diff)
downloadmupdf-09a80805da7f7ed46eae1836cfec383238a991b9.tar.xz
Initialize disabled document writing flags to zero
Also remove redundant assignments. Fixes http://bugs.ghostscript.com/show_bug.cgi?id=695968
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/pdfclean.c7
-rw-r--r--source/tools/pdfposter.c6
2 files changed, 0 insertions, 13 deletions
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)