From 30c731b487190c02afff3f036736a392eb60cd9a Mon Sep 17 00:00:00 2001
From: Adam Reichold <adam.reichold@t-online.de>
Date: Fri, 22 Mar 2019 19:12:47 +0100
Subject: [PATCH] Properly initialize HtmlOutputDev::page to avoid SIGSEGV upon
 error exit.

Closes #742
---
 utils/HtmlOutputDev.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index ace303b..090631b 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -1102,6 +1102,7 @@ HtmlOutputDev::HtmlOutputDev(Catalog *catalogA, char *fileName, char *title,
 {
   catalog = catalogA;
   fContentsFrame = nullptr;
+  page = nullptr;
   docTitle = new GooString(title);
   pages = nullptr;
   dumpJPEG=gTrue;
-- 
2.27.0

