summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-02-17 16:34:17 +0000
committerRobin Watts <Robin.Watts@artifex.com>2022-02-17 16:34:17 +0000
commitd2a362b30dadced457ed11e2151938df9ccbdd0f (patch)
tree5489d9f063623008f7d822824e3c03044c671eb2 /pcl
parent7e36b200197732eede4cfcd0331c49d27adb4978 (diff)
downloadghostpdl-d2a362b30dadced457ed11e2151938df9ccbdd0f.tar.gz
Coverity 375614: Initialise pixinfo.id to gx_no_bitmap_id.
Certainly shouldn't hurt, and may genuinely be a bug.
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcl/pcuptrn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pcl/pcl/pcuptrn.c b/pcl/pcl/pcuptrn.c
index d0efa1bfc..122d9b45a 100644
--- a/pcl/pcl/pcuptrn.c
+++ b/pcl/pcl/pcuptrn.c
@@ -393,6 +393,7 @@ download_pcl_pattern(pcl_args_t * pargs, pcl_state_t * pcs)
depth = puptrn0->depth & 0xf;
pixinfo.pix_depth = depth;
pixinfo.raster = (pixinfo.size.x * depth + 7) / 8;
+ pixinfo.id = gx_no_bitmap_id;
rsize = pixinfo.raster * pixinfo.size.y;
dsize = min(count - ndsize, rsize);