From 403c628e6212a109cd144e96e777e5dbabed09e4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Nov 2017 06:01:25 +0530 Subject: [PATCH] Fix uninitialized variable use Pointed out by compiling with -Og -g3 (gcc) Closes #1143 --- src/wl_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wl_init.c b/src/wl_init.c index 3841636f2..6e7003d1b 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -131,7 +131,7 @@ static void pointerHandleAxis(void* data, { _GLFWwindow* window = _glfw.wl.pointerFocus; double scrollFactor; - double x, y; + double x = 0.0, y = 0.0; if (!window) return;