diff options
Diffstat (limited to 'pdf/pdf_parse.c')
-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) |