summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-19 23:45:05 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-20 00:09:12 -0700
commite89c0797e8b21b543a228fb56957ba3a1e91c38e (patch)
treef06b61ef7753cab6c752377c804157adfbe7ae64
parent2bc7b34f2868f7d340c36c20a715d9c36495f236 (diff)
Quiet gcc warnings about potentially uninitialized variables
It should have been impossible for these to be used without being initialized, but following the logic to prove that was trickier than the compiler was willing to unravel. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--multiVis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/multiVis.c b/multiVis.c
index e2b0bc2..4ee06d5 100644
--- a/multiVis.c
+++ b/multiVis.c
@@ -299,7 +299,7 @@ static void TransferImage(Display *disp, XImage *reg_image,
{
int i,j,old_pixel,new_pixel,red_ind,green_ind,blue_ind ;
XColor *colors;
- int rShift,gShift,bShift;
+ int rShift = 0, gShift = 0, bShift = 0;
(void) QueryColorMap(disp,reg->cmap,reg->vis,&colors,
&rShift,&gShift,&bShift) ;