Skip to content

Commit

Permalink
update mupdf
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Nov 10, 2023
1 parent df8e9e0 commit 332e2b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mupdf/source/fitz/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fz_drop_context(fz_context *ctx)
if (!ctx)
return;

if (ctx->error.message[0])
if (ctx->error.errcode)
{
fz_flush_warnings(ctx);
fz_warn(ctx, "UNHANDLED EXCEPTION!");
Expand Down
4 changes: 2 additions & 2 deletions mupdf/source/fitz/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void (fz_log_error)(fz_context *ctx, const char *str)
/* coverity[+kill] */
FZ_NORETURN void (fz_vthrow)(fz_context *ctx, int code, const char *fmt, va_list ap)
{
if (ctx->error.message[0])
if (ctx->error.errcode)
{
fz_flush_warnings(ctx);
fz_warn(ctx, "UNHANDLED EXCEPTION!");
Expand Down Expand Up @@ -463,7 +463,7 @@ void fz_log_errorFL(fz_context *ctx, const char *file, int line, const char *str
/* coverity[+kill] */
FZ_NORETURN void fz_vthrowFL(fz_context *ctx, const char *file, int line, int code, const char *fmt, va_list ap)
{
if (ctx->error.message[0])
if (ctx->error.errcode)
{
fz_flush_warnings(ctx);
fz_warn(ctx, "UNHANDLED EXCEPTION!");
Expand Down

0 comments on commit 332e2b2

Please sign in to comment.