summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-image.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-09-13 15:47:58 +0100
committerRobin Watts <robin.watts@artifex.com>2013-09-13 16:02:32 +0100
commitaefe6a511b3cb901034e5995fd882e334e40f2bb (patch)
tree74005b19d77e704480b2c7c43c3ed51c15b17dcf /source/pdf/pdf-image.c
parenta0a92b5cf0fa076c923e7a5aa911dfff28aea351 (diff)
downloadmupdf-aefe6a511b3cb901034e5995fd882e334e40f2bb.tar.xz
Fix various compile warnings spotted by the cluster.
Diffstat (limited to 'source/pdf/pdf-image.c')
-rw-r--r--source/pdf/pdf-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c
index ef93d96b..f3f63d65 100644
--- a/source/pdf/pdf-image.c
+++ b/source/pdf/pdf-image.c
@@ -222,7 +222,7 @@ pdf_load_jpx(pdf_document *doc, pdf_obj *dict, int forcemask)
img = fz_load_jpx(ctx, buf->data, buf->len, colorspace, indexed);
- if (img && colorspace == NULL)
+ if (colorspace == NULL)
colorspace = fz_keep_colorspace(ctx, img->colorspace);
fz_drop_buffer(ctx, buf);