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/android/viewer/jni/mupdf.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'platform/android') diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c index bc23b9ca..5e04ff8e 100644 --- a/platform/android/viewer/jni/mupdf.c +++ b/platform/android/viewer/jni/mupdf.c @@ -2598,12 +2598,9 @@ JNI_FN(MuPDFCore_saveInternal)(JNIEnv * env, jobject thiz) if (idoc && glo->current_path) { char *tmp; - 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; tmp = tmp_path(glo->current_path); if (tmp) -- cgit v1.2.3