Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed crash if the event subsystem didn't initialize properly
  • Loading branch information
slouken committed Oct 15, 2014
1 parent 20a6c62 commit 639b39c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/linux/SDL_evdev.c
Expand Up @@ -584,6 +584,10 @@ SDL_EVDEV_Poll(void)
Uint32 kval;
#endif

if (!_this) {
return;
}

#if SDL_USE_LIBUDEV
SDL_UDEV_Poll();
#endif
Expand Down

0 comments on commit 639b39c

Please sign in to comment.