summaryrefslogtreecommitdiff
path: root/apps/xpsdraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/xpsdraw.c')
-rw-r--r--apps/xpsdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/xpsdraw.c b/apps/xpsdraw.c
index 8b15ef3e..a7223574 100644
--- a/apps/xpsdraw.c
+++ b/apps/xpsdraw.c
@@ -315,9 +315,9 @@ int main(int argc, char **argv)
fz_accelerate();
ctx = fz_new_context(&fz_alloc_default);
- if (ctx == NULL)
+ if (!ctx)
{
- fprintf(stderr, "failed to initialise context");
+ fprintf(stderr, "cannot initialise context\n");
exit(1);
}