diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:36:20 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:36:20 +0100 |
commit | 2af3baffb58f22ddf3ac5944d2677b981763e03d (patch) | |
tree | 70d1dfc4ea490b053072b2ea68ad250b8a96972e /fitz/res_halftone.c | |
parent | 62ff8552500694c96b998d2aac6fbc47ab2d9395 (diff) | |
download | mupdf-2af3baffb58f22ddf3ac5944d2677b981763e03d.tar.xz |
Stylistic changes when testing pointer values for NULL.
Also: use 'cannot' instead of 'failed to' in error messages.
Diffstat (limited to 'fitz/res_halftone.c')
-rw-r--r-- | fitz/res_halftone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_halftone.c b/fitz/res_halftone.c index ad2ab694..b1b8d7b4 100644 --- a/fitz/res_halftone.c +++ b/fitz/res_halftone.c @@ -162,7 +162,7 @@ fz_bitmap *fz_halftone_pixmap(fz_context *ctx, fz_pixmap *pix, fz_halftone *ht) unsigned char *ht_line, *o, *p; int w, h, x, y, n, pstride, ostride; - if (pix == NULL || ht == NULL) + if (!pix || !ht) return NULL; assert(pix->n == 2); /* Mono + Alpha */ |