Check the return value of SDL_EVDEV_Init()
authorSam Lantinga <slouken@libsdl.org>
Sun, 08 Jan 2017 18:32:20 -0800
changeset 10794fb67bf50547d
parent 10793 7e657de3758d
child 10795 e0fd1d8379cd
Check the return value of SDL_EVDEV_Init()
src/video/raspberry/SDL_rpivideo.c
     1.1 --- a/src/video/raspberry/SDL_rpivideo.c	Sun Jan 08 16:18:49 2017 -0500
     1.2 +++ b/src/video/raspberry/SDL_rpivideo.c	Sun Jan 08 18:32:20 2017 -0800
     1.3 @@ -183,7 +183,9 @@
     1.4      SDL_AddVideoDisplay(&display);
     1.5  
     1.6  #ifdef SDL_INPUT_LINUXEV    
     1.7 -    SDL_EVDEV_Init();
     1.8 +    if (SDL_EVDEV_Init() < 0) {
     1.9 +        return -1;
    1.10 +    }
    1.11  #endif    
    1.12      
    1.13      RPI_InitMouse(_this);