diff --git a/src/video/x11/SDL_x11mouse.c b/src/video/x11/SDL_x11mouse.c index 7c0d80043..3689abb61 100644 --- a/src/video/x11/SDL_x11mouse.c +++ b/src/video/x11/SDL_x11mouse.c @@ -61,6 +61,7 @@ X11_InitMouse(_THIS) } /* we're getting the list of input devices */ + n = 0; DevList = XListInputDevices(display, &n); /* we're aquiring valuators: mice, tablets, etc. */