From e72777aadace55bf15775c0ed35d40e3f39f71ba Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 18 Oct 2014 08:01:19 +0200 Subject: [PATCH] (GX) Make gx_input_get_joypad_driver slightly more robust --- input/gx_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/input/gx_input.c b/input/gx_input.c index 2b80ae8cbd..048ecef1c1 100644 --- a/input/gx_input.c +++ b/input/gx_input.c @@ -104,7 +104,9 @@ static uint64_t gx_input_get_capabilities(void *data) static const rarch_joypad_driver_t *gx_input_get_joypad_driver(void *data) { gx_input_t *gx = (gx_input_t*)data; - return gx->joypad; + if (gx) + return gx->joypad; + return NULL; } input_driver_t input_gx = {