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 <guil...@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 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel