From aef9ebb6217d2fc47e87e7b3993bef35276d5601 Mon Sep 17 00:00:00 2001
From: Paul Vines <paul.vines@baesystems.com>
Date: Wed, 12 Feb 2020 16:04:29 +0000
Subject: [PATCH] Fixed name of junk vs. hdr_junk

---
 pdf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pdf.c b/pdf.c
index 678788d..e5cf938 100644
--- a/pdf.c
+++ b/pdf.c
@@ -686,7 +686,7 @@ init_parser(struct Env *aux)
 	H_RULE(tail,	SEQ(body, h_optional(xr_td), startxr));
 		// XXX the real world likes to omit 'startxr' from all but the
 		// last trailer. we should accept-and-warn in that case.
-	H_RULE(pdf,	SEQ(header, OPT(junk), h_many1(tail), end));
+	H_RULE(pdf,	SEQ(header, OPT(hdr_junk), h_many1(tail), end));
 
 	/* debug parser to consume as much as possible */
 	H_RULE(pdfdbg,	SEQ(header, h_many(tail), body, OPT(xr_td), OPT(startxr)));
-- 
GitLab