changeset 2962:1e242954330b

Hopefully fixed crash when there are no input devices
author Sam Lantinga <slouken@libsdl.org>
date Fri, 02 Jan 2009 10:30:53 +0000
parents 9f16a1761fa5
children ee331407574f
files src/video/x11/SDL_x11mouse.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11mouse.c	Fri Jan 02 09:50:25 2009 +0000
+++ b/src/video/x11/SDL_x11mouse.c	Fri Jan 02 10:30:53 2009 +0000
@@ -61,6 +61,7 @@
     }
 
     /* we're getting the list of input devices */
+    n = 0;
     DevList = XListInputDevices(display, &n);
 
     /* we're aquiring valuators: mice, tablets, etc. */