Skip to content

Commit

Permalink
Check the return value of SDL_EVDEV_Init()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 9, 2017
1 parent 38854e0 commit c16dd74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/raspberry/SDL_rpivideo.c
Expand Up @@ -183,7 +183,9 @@ RPI_VideoInit(_THIS)
SDL_AddVideoDisplay(&display);

#ifdef SDL_INPUT_LINUXEV
SDL_EVDEV_Init();
if (SDL_EVDEV_Init() < 0) {
return -1;
}
#endif

RPI_InitMouse(_this);
Expand Down

0 comments on commit c16dd74

Please sign in to comment.