summaryrefslogtreecommitdiff
path: root/base/gxclrast.c
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2020-01-15 12:23:21 -0800
committerRay Johnston <ray.johnston@artifex.com>2020-01-16 08:48:43 -0800
commit27a3bf0bc16f492538434a9b1bfdbd588e29cedc (patch)
tree83b6afbefd946a74a950b341ed2b628e27436238 /base/gxclrast.c
parent39eff9a56b2077d1a9adb48dfefd38e5e94b59c6 (diff)
downloadghostpdl-27a3bf0bc16f492538434a9b1bfdbd588e29cedc.tar.gz
Fix coverity CID 353343.
Remove ppcs. When the code was changed to write the pgs->color[0], the ppcs param was never removed.
Diffstat (limited to 'base/gxclrast.c')
-rw-r--r--base/gxclrast.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/base/gxclrast.c b/base/gxclrast.c
index c58e0af00..d8ebb8d85 100644
--- a/base/gxclrast.c
+++ b/base/gxclrast.c
@@ -249,7 +249,7 @@ static int read_set_bits(command_buf_t *pcb, tile_slot *bits,
gx_device_clist_reader *cdev, gs_memory_t *mem);
static int read_set_misc2(command_buf_t *pcb, gs_gstate *pgs,
segment_notes *pnotes);
-static int read_set_color_space(command_buf_t *pcb, gs_gstate *pgs, gs_color_space **ppcs,
+static int read_set_color_space(command_buf_t *pcb, gs_gstate *pgs,
gx_device_clist_reader *cdev, gs_memory_t *mem);
static int read_begin_image(command_buf_t *pcb, gs_image_common_t *pic,
gs_color_space *pcs);
@@ -1338,7 +1338,7 @@ set_phase: /*
break;
case cmd_opv_set_color_space:
cbuf.ptr = cbp;
- code = read_set_color_space(&cbuf, &gs_gstate, &pcs, cdev, mem);
+ code = read_set_color_space(&cbuf, &gs_gstate, cdev, mem);
pcs = gs_gstate.color[0].color_space;
cbp = cbuf.ptr;
if (code < 0) {
@@ -2755,7 +2755,7 @@ read_set_misc2(command_buf_t *pcb, gs_gstate *pgs, segment_notes *pnotes)
}
static int
-read_set_color_space(command_buf_t *pcb, gs_gstate *pgs, gs_color_space** ppcs,
+read_set_color_space(command_buf_t *pcb, gs_gstate *pgs,
gx_device_clist_reader *cdev, gs_memory_t *mem)
{
const byte *cbp = pcb->ptr;
@@ -2766,8 +2766,6 @@ read_set_color_space(command_buf_t *pcb, gs_gstate *pgs, gs_color_space** ppcs,
cmm_profile_t *picc_profile;
clist_icc_color_t icc_information;
- ppcs = &pcs;
-
if_debug3m('L', mem, " %d%s%s\n", index,
(b & 8 ? " (indexed)" : ""),
(b & 4 ? "(proc)" : ""));