From a73ce044b03414e91e4d7cd9246a253f8999c4da Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 2 Jan 2009 10:30:53 +0000 Subject: [PATCH] Hopefully fixed crash when there are no input devices --- src/video/x11/SDL_x11mouse.c | 1 + 1 file changed, 1 insertion(+) 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. */