From e2ecfbfd548d37eac9daacbd908310bcc940b2a1 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Wed, 1 Mar 2023 06:46:02 +0800 Subject: [PATCH] Coverity: fix wcolorpanel uninitialized scalar value --- WINGs/wcolorpanel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c index a19423a1..b799e0d0 100644 --- a/WINGs/wcolorpanel.c +++ b/WINGs/wcolorpanel.c @@ -2259,7 +2259,7 @@ static void wheelPositionSelectionOutBounds(W_ColorPanel * panel, int x, int y) static void wheelUpdateBrightnessGradientFromLocation(W_ColorPanel * panel) { - CPColor from; + CPColor from = {}; unsigned long ofs; ofs = panel->coly * panel->wheelMtrx->width + panel->colx; @@ -2604,7 +2604,7 @@ static void cmykTextFieldCallback(void *observerData, WMNotification * notificat static void hsbSliderCallback(WMWidget * w, void *data) { - CPColor cpColor; + CPColor cpColor = {}; int value[3]; char tmp[4]; W_ColorPanel *panel = (W_ColorPanel *) data; @@ -2640,7 +2640,7 @@ static void hsbSliderCallback(WMWidget * w, void *data) static void hsbTextFieldCallback(void *observerData, WMNotification * notification) { - CPColor cpColor; + CPColor cpColor = {}; int value[3]; char tmp[12]; /* We only 4 bytes needed, but compilers cannot know that */ int n;