summaryrefslogtreecommitdiff
path: root/fitz/base_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/base_error.c')
-rw-r--r--fitz/base_error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/base_error.c b/fitz/base_error.c
index 3373016f..1184981c 100644
--- a/fitz/base_error.c
+++ b/fitz/base_error.c
@@ -51,7 +51,7 @@ static void throw(fz_error_context *ex)
void fz_push_try(fz_error_context *ex)
{
- assert(ex != NULL);
+ assert(ex);
if (ex->top + 1 >= nelem(ex->stack))
{
fprintf(stderr, "exception stack overflow!\n");
@@ -62,8 +62,8 @@ void fz_push_try(fz_error_context *ex)
char *fz_caught(fz_context *ctx)
{
- assert(ctx != NULL);
- assert(ctx->error != NULL);
+ assert(ctx);
+ assert(ctx->error);
return ctx->error->message;
}