diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-06-19 18:08:16 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-06-19 18:22:26 +0100 |
commit | 06417814d2fcea74e3f7128c77cef8cc43952a8a (patch) | |
tree | 22bf8b168644a56bb437b08299e8ffeac4d281e8 /fitz/base_context.c | |
parent | ce6dc95e477cbf58a2c5e4465d00f156a56fefe5 (diff) | |
download | mupdf-06417814d2fcea74e3f7128c77cef8cc43952a8a.tar.xz |
Exception handling fixes.
Various tweaks to ensure the exception handling works as expected
when throwing error values. The key thing is not to reset the
error value on a try, as this can cause problems when code calls
trys in the always section.
Diffstat (limited to 'fitz/base_context.c')
-rw-r--r-- | fitz/base_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/base_context.c b/fitz/base_context.c index 231d9104..c65377a8 100644 --- a/fitz/base_context.c +++ b/fitz/base_context.c @@ -93,7 +93,7 @@ new_context_phase1(fz_alloc_context *alloc, fz_locks_context *locks) if (!ctx->error) goto cleanup; ctx->error->top = -1; - ctx->error->errcode = 0; + ctx->error->errcode = FZ_ERROR_NONE; ctx->error->message[0] = 0; ctx->warn = fz_malloc_no_throw(ctx, sizeof(fz_warn_context)); |