# HG changeset patch # User Sam Lantinga # Date 1230892253 0 # Node ID 1e242954330bb79698433d24fb2e0d935afadea2 # Parent 9f16a1761fa5b5abf494317012b86216e4a39b6d Hopefully fixed crash when there are no input devices diff -r 9f16a1761fa5 -r 1e242954330b 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. */