diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-01 15:25:43 +0000 |
---|---|---|
committer | Robin Watts <robin@ghostscript.com> | 2012-03-01 15:30:34 +0000 |
commit | c6aa389a2c3430396a5e818bbb849410ab29d617 (patch) | |
tree | f1a46dbe7eb2dcedc463a2281b8f41db6102d3f6 /pdf | |
parent | 152ce17e73ab54e0f619ec2088b34a4a5e53f421 (diff) | |
download | mupdf-c6aa389a2c3430396a5e818bbb849410ab29d617.tar.xz |
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.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_parse.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) |