Fixed crash if the event subsystem didn't initialize properly
authorSam Lantinga <slouken@libsdl.org>
Wed, 15 Oct 2014 09:09:57 -0700
changeset 9159d743b9d03a52
parent 9158 8fa5ff95c410
child 9160 25a97df364fb
Fixed crash if the event subsystem didn't initialize properly
src/core/linux/SDL_evdev.c
     1.1 --- a/src/core/linux/SDL_evdev.c	Tue Oct 14 09:53:46 2014 -0400
     1.2 +++ b/src/core/linux/SDL_evdev.c	Wed Oct 15 09:09:57 2014 -0700
     1.3 @@ -584,6 +584,10 @@
     1.4      Uint32 kval;
     1.5  #endif
     1.6  
     1.7 +    if (!_this) {
     1.8 +        return;
     1.9 +    }
    1.10 +
    1.11  #if SDL_USE_LIBUDEV
    1.12      SDL_UDEV_Poll();
    1.13  #endif