diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-12-29 19:12:13 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-12-29 19:13:00 +0000 |
commit | 15d7a79f92e3799d3db0b2b1c733635701da04d9 (patch) | |
tree | c247b3d80f14328e481fd132df25cc4f7a460169 | |
parent | 319c9d2315ad4fb13abe423571311ddb63202e2c (diff) | |
download | mupdf-15d7a79f92e3799d3db0b2b1c733635701da04d9.tar.xz |
Remove unnecessary test.
We know i >= 0 as we've already thrown if i < 0 earlier.
Credit to Malc for spotting this.
-rw-r--r-- | source/pdf/pdf-xref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index b7ac1e20..897d512f 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -230,7 +230,7 @@ pdf_xref_entry *pdf_get_xref_entry(pdf_document *doc, int i) { xref = &doc->xref_sections[j]; - if (i >= 0 && i < xref->num_objects) + if (i < xref->num_objects) { for (sub = xref->subsec; sub != NULL; sub = sub->next) { |