summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fitz/fitz.h4
-rw-r--r--pdf/pdf_parse.c7
2 files changed, 5 insertions, 6 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 825ed4ba..f72aecb9 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -210,7 +210,7 @@ execution. Again this was felt to be too high a cost to use.
#define fz_always(ctx) \
} while (0); \
- longjmp(ctx->error->stack[ctx->error->top].buffer, 3); \
+ fz_longjmp(ctx->error->stack[ctx->error->top].buffer, 3); \
} \
else if (ctx->error->stack[ctx->error->top].code & 1) \
{ do {
@@ -218,7 +218,7 @@ execution. Again this was felt to be too high a cost to use.
#define fz_catch(ctx) \
} while(0); \
if (ctx->error->stack[ctx->error->top].code == 1) \
- longjmp(ctx->error->stack[ctx->error->top].buffer, 2); \
+ fz_longjmp(ctx->error->stack[ctx->error->top].buffer, 2); \
ctx->error->top--;\
} \
else if (ctx->error->top--, 1)
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)