[gs-commits] mupdf 1.16.1.101 Handle missing output when writing PDF d

[email protected] (Tor Andersson) Tue, 22 Oct 2019 11:29:11 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit de3612b485d044933eed0b3db444e10deb0ca10d
Author: Sebastian Rasmussen <[email protected]>
Date:   Sat Oct 19 01:01:03 2019 +0200

    Handle missing output when writing PDF document.

diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c
index 94d8467..9eb450c 100644
--- a/source/pdf/pdf-write.c
+++ b/source/pdf/pdf-write.c
@@ -3455,7 +3455,7 @@ void pdf_write_document(fz_context *ctx, pdf_document *doc, fz_output *out, pdf_
 	pdf_write_options opts_defaults = pdf_default_write_options;
 	pdf_write_state opts = { 0 };
 
-	if (!doc)
+	if (!doc || !out)
 		return;
 
 	if (!in_opts)

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=de3612b485d044933eed0b3db444e10deb0ca10d

--
MuPDF library
Artifex Software, Inc.