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;