summaryrefslogtreecommitdiff
path: root/src/Fl_Color_Chooser.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2012-08-18 10:47:48 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2012-08-18 10:47:48 +0000
commit228e5a0dc2047c93e42c4f56fa7c06ec4a140a9d (patch)
tree4c3b816769608844042b4eb4f2545862dc8fa187 /src/Fl_Color_Chooser.cxx
parent5fab123cd17127e9cffdc564e8ee709e3e5175bc (diff)
Silence compiler warning: "... may be used uninitialized ..."
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Color_Chooser.cxx')
-rw-r--r--src/Fl_Color_Chooser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Color_Chooser.cxx b/src/Fl_Color_Chooser.cxx
index 65f0c3031..88a3b0461 100644
--- a/src/Fl_Color_Chooser.cxx
+++ b/src/Fl_Color_Chooser.cxx
@@ -251,7 +251,7 @@ static void generate_image(void* vv, int X, int Y, int W, uchar* buf) {
for (int x = X; x < X+W; x++) {
double Xf = double(x)/iw;
double H,S; tohs(Xf,Yf,H,S);
- double r,g,b;
+ double r=0, g=0, b=0;
Fl_Color_Chooser::hsv2rgb(H,S,V,r,g,b);
*buf++ = uchar(255*r+.5);
*buf++ = uchar(255*g+.5);