mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 19:24:46 +00:00
settings_data: Fix potential null pointer dereference
This commit is contained in:
parent
206797c6f9
commit
304f0e0492
@ -430,11 +430,12 @@ static int setting_data_bind_action_start(void *data)
|
||||
{
|
||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||
struct retro_keybind *def_binds = (struct retro_keybind *)retro_keybinds_1;
|
||||
struct retro_keybind *keybind = (struct retro_keybind*)setting->value.keybind;
|
||||
struct retro_keybind *keybind = NULL;
|
||||
|
||||
if (!setting || !driver.menu)
|
||||
return -1;
|
||||
|
||||
keybind = (struct retro_keybind*)setting->value.keybind;
|
||||
if (!keybind)
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user