summaryrefslogtreecommitdiff
path: root/pdf/pdf_repair.c
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf_repair.c')
-rw-r--r--pdf/pdf_repair.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf/pdf_repair.c b/pdf/pdf_repair.c
index 141cc361..067fe2cf 100644
--- a/pdf/pdf_repair.c
+++ b/pdf/pdf_repair.c
@@ -258,7 +258,7 @@ pdf_repair_xref(pdf_xref *xref, char *buf, int bufsize)
gen = atoi(buf);
}
- if (tok == PDF_TOK_OBJ)
+ else if (tok == PDF_TOK_OBJ)
{
error = pdf_repair_obj(xref->file, buf, bufsize, &stm_ofs, &stm_len, &encrypt, &id);
if (error)
@@ -285,7 +285,7 @@ pdf_repair_xref(pdf_xref *xref, char *buf, int bufsize)
}
/* trailer dictionary */
- if (tok == PDF_TOK_OPEN_DICT)
+ else if (tok == PDF_TOK_OPEN_DICT)
{
error = pdf_parse_dict(&dict, xref, xref->file, buf, bufsize);
if (error)
@@ -329,10 +329,10 @@ pdf_repair_xref(pdf_xref *xref, char *buf, int bufsize)
fz_drop_obj(dict);
}
- if (tok == PDF_TOK_ERROR)
+ else if (tok == PDF_TOK_ERROR)
fz_read_byte(xref->file);
- if (tok == PDF_TOK_EOF)
+ else if (tok == PDF_TOK_EOF)
break;
}