summaryrefslogtreecommitdiff
path: root/fitz/res_halftone.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/res_halftone.c')
-rw-r--r--fitz/res_halftone.c2
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 */