diff options
Diffstat (limited to 'fitz/base_error.c')
-rw-r--r-- | fitz/base_error.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/base_error.c b/fitz/base_error.c index 3ef69a60..b844fb6a 100644 --- a/fitz/base_error.c +++ b/fitz/base_error.c @@ -36,9 +36,9 @@ void fz_warn(fz_context *ctx, char *fmt, ...) static void throw(fz_error_context *ex) { - if (ex->top >= 0) - longjmp(ex->stack[ex->top].buffer, 1); - else { + if (ex->top >= 0) { + longjmp(ex->stack[ex->top--].buffer, 1); + } else { fprintf(stderr, "uncaught exception: %s\n", ex->message); exit(EXIT_FAILURE); } |