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