From c6aa389a2c3430396a5e818bbb849410ab29d617 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 1 Mar 2012 15:25:43 +0000 Subject: Setjmp/longjmp exception tweaks. First, fix a couple of the 'alternative formulations' of the try/catch code in the comments. Secondly, work around a Mac OS X compiler bug. --- pdf/pdf_parse.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pdf') diff --git a/pdf/pdf_parse.c b/pdf/pdf_parse.c index e171e698..57ba1d6f 100644 --- a/pdf/pdf_parse.c +++ b/pdf/pdf_parse.c @@ -313,19 +313,18 @@ end: pdf_obj * pdf_parse_dict(pdf_document *xref, fz_stream *file, pdf_lexbuf *buf) { - pdf_obj *dict = NULL; + pdf_obj *dict; pdf_obj *key = NULL; pdf_obj *val = NULL; int tok; int a, b; fz_context *ctx = file->ctx; - fz_var(dict); + dict = pdf_new_dict(ctx, 8); + fz_var(key); fz_var(val); - dict = pdf_new_dict(ctx, 8); - fz_try(ctx) { while (1) -- cgit v1.2.3