summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2017-09-05 15:28:19 +0100
committerChris Liddell <chris.liddell@artifex.com>2017-09-05 15:29:42 +0100
commit61856e04852124491a47fa6379f1c3ad296f3366 (patch)
tree3e0820c47fc5d2835a5c0a0f639cd7c15950aa98
parent1b9ea22b3456a24e356d3f5a68036cecbb28af56 (diff)
downloadghostpdl-61856e04852124491a47fa6379f1c3ad296f3366.tar.gz
Coverity ID# 122660
NULL pointer check - the code branch above already does so, looks like a simple ommission
-rw-r--r--base/gxiscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gxiscale.c b/base/gxiscale.c
index ff0e627a9..1144b1558 100644
--- a/base/gxiscale.c
+++ b/base/gxiscale.c
@@ -772,7 +772,7 @@ initial_decode(gx_image_enum * penum, const byte * buffer, int data_x, int h,
/* Even in this case we need to worry about an indexed color space.
We need to get to the base color space for the interpolation and
then if necessary do the remap to the device space */
- if (pcs->type->index != gs_color_space_index_Indexed) {
+ if (pcs == NULL || pcs->type->index != gs_color_space_index_Indexed) {
int bps = penum->bps;
int dc = penum->spp;
const byte *pdata = bdata;