[gs-cvs] rev 7890 - trunk/gs/src
alexcher at ghostscript.com
alexcher at ghostscript.com
Tue May 1 15:51:27 PDT 2007
Author: alexcher
Date: 2007-05-01 15:51:27 -0700 (Tue, 01 May 2007)
New Revision: 7890
Modified:
trunk/gs/src/gximono.c
Log:
Pacify Valgrind. Initialize an uninitialized variable that is used in
calculations but doesn't affect the end result in this case.
DIFFERENCES:
None
Modified: trunk/gs/src/gximono.c
===================================================================
--- trunk/gs/src/gximono.c 2007-05-01 20:52:58 UTC (rev 7889)
+++ trunk/gs/src/gximono.c 2007-05-01 22:51:27 UTC (rev 7890)
@@ -93,7 +93,8 @@
gs_client_color cc;
gx_device_color *pdevc = &penum->icolor1; /* color for masking */
bool tiles_fit;
- uint mask_base = penum->mask_color.values[0];
+ uint mask_base = /* : 0 to pacify Valgrind */
+ (penum->use_mask_color ? penum->mask_color.values[0] : 0);
uint mask_limit =
(penum->use_mask_color ?
penum->mask_color.values[1] - mask_base + 1 : 0);
More information about the gs-cvs
mailing list