From aefe6a511b3cb901034e5995fd882e334e40f2bb Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 13 Sep 2013 15:47:58 +0100 Subject: Fix various compile warnings spotted by the cluster. --- source/pdf/pdf-repair.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/pdf/pdf-repair.c') diff --git a/source/pdf/pdf-repair.c b/source/pdf/pdf-repair.c index fc603d1d..8fedbeff 100644 --- a/source/pdf/pdf-repair.c +++ b/source/pdf/pdf-repair.c @@ -257,7 +257,7 @@ pdf_repair_xref(pdf_document *doc, pdf_lexbuf *buf) int num = 0; int gen = 0; int tmpofs, numofs = 0, genofs = 0; - int stm_len, stm_ofs = 0; + int stm_len, stm_ofs; pdf_token tok; int next; int i, n, c; @@ -339,6 +339,8 @@ pdf_repair_xref(pdf_document *doc, pdf_lexbuf *buf) { fz_try(ctx) { + stm_len = 0; + stm_ofs = 0; tok = pdf_repair_obj(doc, buf, &stm_ofs, &stm_len, &encrypt, &id, NULL, &tmpofs); } fz_catch(ctx) -- cgit v1.2.3