(GX) Make gx_input_get_joypad_driver slightly more robust

This commit is contained in:
twinaphex 2014-10-18 08:01:19 +02:00
parent 8856ed59a7
commit e72777aada

View File

@ -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 = {