summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mupdf/pdf_repair.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mupdf/pdf_repair.c b/mupdf/pdf_repair.c
index ed526cab..d7451c27 100644
--- a/mupdf/pdf_repair.c
+++ b/mupdf/pdf_repair.c
@@ -176,8 +176,8 @@ pdf_repairxref(pdf_xref *xref, char *buf, int bufsize)
error = pdf_lex(&tok, xref->file, buf, bufsize, &len);
if (error)
{
- error = fz_rethrow(error, "cannot scan for objects");
- goto cleanup;
+ fz_catch(error, "ignoring the rest of the file");
+ break;
}
if (tok == PDF_TINT)