commit 685968969875380ac6eb9b068c29fb4d1d414ede parent 93ae17b7dca51b7276d84042899411d814a6b41e Author: Kyle Milz <krwmilz@gmail.com> Date: Sun, 12 Mar 2023 07:02:22 +0000 expand out compound if statement Diffstat:
M | dvi-init.c | | | 10 | +++++++--- |
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dvi-init.c b/dvi-init.c @@ -566,9 +566,13 @@ read_postamble(long *last_page_offset, long numerator, long denominator) /* Postamble doesn't begin with POST */ return False; *last_page_offset = four(dvi_file); - if (numerator != four(dvi_file) || denominator != four(dvi_file) || - magnification != four(dvi_file)) - /* Postamble doesn't match preamble */ + + /* Check postamble duplicates match preamble. */ + if (numerator != four(dvi_file)) + return False; + if (denominator != four(dvi_file)) + return False; + if (magnification != four(dvi_file)) return False; /* read largest box height and width */