From 4d99a7d03e27d508cea34b089d87c687b4ce70ba Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 19 Jul 2013 23:45:05 -0700 Subject: [PATCH] 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. Change-Id: Ib51714d5b5d048923388fcd55eff3fb062526d0e Signed-off-by: Alan Coopersmith --- multiVis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ; -- 2.7.4