Marcus von Appen fixed bug 1530: X11 touch initialisation does not check its file handles

This commit is contained in:
Sam Lantinga 2012-07-02 08:33:10 -04:00
parent c45ef572c4
commit 22635aff00

View File

@ -46,6 +46,7 @@ X11_InitTouch(_THIS)
#ifdef SDL_INPUT_LINUXEV
FILE *fd;
fd = fopen("/proc/bus/input/devices","r");
if (!fd) return;
int i = 0;
int tsfd;