diff options
author | Alex Cherepanov <alex.cherepanov@artifex.com> | 2007-05-01 22:51:27 +0000 |
---|---|---|
committer | Alex Cherepanov <alex.cherepanov@artifex.com> | 2007-05-01 22:51:27 +0000 |
commit | 3b0f6dfb2e8d5582fa1e6102ba6edffbf93f1d2c (patch) | |
tree | 4e548bbeb475d60468819f3c4807206ce920cec5 /gs/src/gximono.c | |
parent | 3be96a9f71f901455ad018d1ca99768920a92aa7 (diff) |
Pacify Valgrind. Initialize an uninitialized variable that is used in
calculations but doesn't affect the end result in this case.
DIFFERENCES:
None
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7890 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gximono.c')
-rw-r--r-- | gs/src/gximono.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/src/gximono.c b/gs/src/gximono.c index 41b0038a9..d65342e4e 100644 --- a/gs/src/gximono.c +++ b/gs/src/gximono.c @@ -93,7 +93,8 @@ image_render_mono(gx_image_enum * penum, const byte * buffer, int data_x, 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); |