Marcus von Appen fixed bug 1530: X11 touch initialisation does not check its file handles
authorSam Lantinga
Mon, 02 Jul 2012 08:33:10 -0400
changeset 6348049721824c2e
parent 6346 56871d364efc
child 6349 bc8de0568373
Marcus von Appen fixed bug 1530: X11 touch initialisation does not check its file handles
src/video/x11/SDL_x11touch.c
     1.1 --- a/src/video/x11/SDL_x11touch.c	Mon Jun 25 11:10:34 2012 -0400
     1.2 +++ b/src/video/x11/SDL_x11touch.c	Mon Jul 02 08:33:10 2012 -0400
     1.3 @@ -46,6 +46,7 @@
     1.4  #ifdef SDL_INPUT_LINUXEV
     1.5      FILE *fd;
     1.6      fd = fopen("/proc/bus/input/devices","r");
     1.7 +    if (!fd) return;
     1.8  
     1.9      int i = 0;
    1.10      int tsfd;