Hopefully fixed crash when there are no input devices
authorSam Lantinga <slouken@libsdl.org>
Fri, 02 Jan 2009 10:30:53 +0000
changeset 2962 1e242954330b
parent 2961 9f16a1761fa5
child 2963 ee331407574f
Hopefully fixed crash when there are no input devices
src/video/x11/SDL_x11mouse.c
--- 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. */