From 2af3baffb58f22ddf3ac5944d2677b981763e03d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 8 Dec 2011 23:36:20 +0100 Subject: Stylistic changes when testing pointer values for NULL. Also: use 'cannot' instead of 'failed to' in error messages. --- apps/xpsdraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/xpsdraw.c') 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); } -- cgit v1.2.3