From 18d629934a8fa1e254986883f288c5db18c33f86 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 1 Nov 2014 22:02:08 -0700 Subject: [PATCH] Fix one more. --- dump.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dump.c b/dump.c index 50e1ba2c3e..3ff45737c6 100644 --- a/dump.c +++ b/dump.c @@ -296,8 +296,6 @@ dump_value(int level) } else if (match_byte (0x31)) { - int subn; - if (match_u32 (1)) { printf("(footnote %d) ", get_u32()); @@ -311,7 +309,7 @@ dump_value(int level) { match_u32_assert (0); match_u32_assert (0); - subn = get_u32 (); + int subn = get_u32 (); printf ("nested %d bytes", subn); pos += subn; } @@ -688,7 +686,14 @@ dump_data(void) if (match_byte (0x31)) { - if (match_u32 (1)) + if (match_u32 (0)) + { + match_u32_assert (0); + int subn = get_u32 (); + printf ("nested %d bytes", subn); + pos += subn; + } + else if (match_u32 (1)) { printf("(footnote %d) ", get_u32()); match_byte_assert (0); -- 2.30.2