From 4eb099b0470b3c77ae7b42f7f6dd0705a62c07dd Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 22 Dec 2021 01:15:29 +0000 Subject: [PATCH] dtstyle: Resolve uninitialized warnings --- cde/programs/dtstyle/ColorEdit.c | 2 +- cde/programs/dtstyle/ColorMain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtstyle/ColorEdit.c b/cde/programs/dtstyle/ColorEdit.c index bc90c1d7c..f7d69ff88 100644 --- a/cde/programs/dtstyle/ColorEdit.c +++ b/cde/programs/dtstyle/ColorEdit.c @@ -1338,7 +1338,7 @@ HSVtoRGB( { double p1, p2, p3; double hue, sat, val; - double red, green, blue; + double red = 0.0, green = 0.0, blue = 0.0; double i, f; hue = (double)h / 60.0; diff --git a/cde/programs/dtstyle/ColorMain.c b/cde/programs/dtstyle/ColorMain.c index bfe900831..f9b498797 100644 --- a/cde/programs/dtstyle/ColorMain.c +++ b/cde/programs/dtstyle/ColorMain.c @@ -2095,7 +2095,7 @@ void SaveOrgPalette( void ) { int i; - palette *tmp_palette, *tmp2_palette; + palette *tmp_palette = NULL, *tmp2_palette = NULL; if(save.restoreFlag && defaultName_restore[0] != 0) { tmp_palette = pHeadPalette;