From 208da5918b2a95906e6e6ef11612227eb65e0493 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 2 Jul 2012 08:33:10 -0400 Subject: [PATCH] Marcus von Appen fixed bug 1530: X11 touch initialisation does not check its file handles --- src/video/x11/SDL_x11touch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/x11/SDL_x11touch.c b/src/video/x11/SDL_x11touch.c index ddef89a66..86a8f3cfe 100755 --- a/src/video/x11/SDL_x11touch.c +++ b/src/video/x11/SDL_x11touch.c @@ -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;