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. --- fitz/base_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fitz/base_context.c') diff --git a/fitz/base_context.c b/fitz/base_context.c index 0eacd6eb..3d9df6aa 100644 --- a/fitz/base_context.c +++ b/fitz/base_context.c @@ -11,7 +11,7 @@ fz_obj *(*fz_resolve_indirect)(fz_obj*) = fz_resolve_indirect_null; void fz_free_context(fz_context *ctx) { - if (ctx == NULL) + if (!ctx) return; /* Other finalisation calls go here (in reverse order) */ -- cgit v1.2.3