From 15d7a79f92e3799d3db0b2b1c733635701da04d9 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 29 Dec 2014 19:12:13 +0000 Subject: Remove unnecessary test. We know i >= 0 as we've already thrown if i < 0 earlier. Credit to Malc for spotting this. --- source/pdf/pdf-xref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3