Fix uninitialized variable use

Pointed out by compiling with -Og -g3 (gcc)
Closes #1143
This commit is contained in:
Kovid Goyal 2017-11-21 06:01:25 +05:30
parent 68809869f9
commit 403c628e62
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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;