diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-10-04 11:35:03 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-10-06 15:17:51 -0400 |
commit | 6b9e47e67cf05503d65194b05d1e3e424bc3ef73 (patch) | |
tree | 6c2e93c52f8e25bde6cef840f727578b20d3a952 /src | |
parent | 30326a08a2e38dab3e82a9233054e67818cd2a85 (diff) |
Define call_data to 0 in NotifyScroll()
Fixes gcc warning:
Scrollbar.c: In function 'NotifyScroll':
Scrollbar.c:950:12: warning: 'call_data' may be used uninitialized in this function [-Wuninitialized]
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Diffstat (limited to 'src')
-rw-r--r-- | 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; |