From 992d4cd524c7971b4bcdb44dfc3a3048bdfc6653 Mon Sep 17 00:00:00 2001
From: "Sven M. Hallberg" <pesco@khjk.org>
Date: Mon, 9 Mar 2020 17:00:24 +0100
Subject: [PATCH] remove superfluous h_parse call after LZW decoding

---
 pdf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/pdf.c b/pdf.c
index 675693f..f5a0fa6 100644
--- a/pdf.c
+++ b/pdf.c
@@ -1787,9 +1787,6 @@ LZWDecode(const Dict *parms, HBytes b, HParser *p)
 	bind_lzw_spec(NULL);
 	delete_lzw_spec(lzw_spec);
 
-	assert(res->ast && res->ast->token_type == TT_BYTES);
-	res = h_parse(p, res->ast->bytes.token, res->ast->bytes.len);
-
 	return res;
 }
 
-- 
GitLab