summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-04-12 14:30:41 +0100
committerRobin Watts <Robin.Watts@artifex.com>2022-04-12 14:32:05 +0100
commita2030a0cc4c9691bd097d7052665194cfee5d931 (patch)
treed946f2710c9838de3d5180fb50fe3b6ff665f34a
parent226cb507884bc4f8d75f74c5b1af409cd5885b15 (diff)
downloadghostpdl-a2030a0cc4c9691bd097d7052665194cfee5d931.tar.gz
Fix warning in downscaler.c
The compiler warns that code could be used unitialised. We know that we have at least one plane, so it won't be, but silence the warning for neatness.
-rw-r--r--base/gxdownscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gxdownscale.c b/base/gxdownscale.c
index 1f8138cb5..8ed122672 100644
--- a/base/gxdownscale.c
+++ b/base/gxdownscale.c
@@ -2168,7 +2168,7 @@ static int
planar_skew_line(gx_downscale_liner *liner_, void *params_, int row)
{
liner_skew *liner = (liner_skew *)liner_;
- int code;
+ int code = 0;
gs_get_bits_params_t *params = (gs_get_bits_params_t *)params_;
int i;