[PATCH libXaw3d 5/5] Define call_data to 0 in NotifyScroll()

Guillem Jover guillem at hadrons.org
Mon Oct 3 20:35:03 PDT 2011


Fixes gcc warning:
Scrollbar.c: In function 'NotifyScroll':
Scrollbar.c:950:12: warning: 'call_data' may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Guillem Jover <guillem at hadrons.org>
---
 src/Scrollbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Scrollbar.c b/src/Scrollbar.c
index 429a660..be74ed3 100644
--- a/src/Scrollbar.c
+++ b/src/Scrollbar.c
@@ -922,7 +922,7 @@ static void
 NotifyScroll (Widget w, XEvent *event, String *params, Cardinal *num_params)
 {
     ScrollbarWidget sbw = (ScrollbarWidget) w;
-    intptr_t call_data;
+    intptr_t call_data = 0;
     char style;
     Position x, y;
 
-- 
1.7.6.3



More information about the xorg-devel mailing list