Hopefully fixed crash when there are no input devices
authorSam Lantinga <slouken@libsdl.org>
Fri, 02 Jan 2009 10:30:53 +0000
changeset 29621e242954330b
parent 2961 9f16a1761fa5
child 2963 ee331407574f
Hopefully fixed crash when there are no input devices
src/video/x11/SDL_x11mouse.c
     1.1 --- a/src/video/x11/SDL_x11mouse.c	Fri Jan 02 09:50:25 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11mouse.c	Fri Jan 02 10:30:53 2009 +0000
     1.3 @@ -61,6 +61,7 @@
     1.4      }
     1.5  
     1.6      /* we're getting the list of input devices */
     1.7 +    n = 0;
     1.8      DevList = XListInputDevices(display, &n);
     1.9  
    1.10      /* we're aquiring valuators: mice, tablets, etc. */