mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +00:00
Merge pull request #6834 from Dwedit/null-fix_
Fix null pointer read in action_bind_sublabel_subsystem_add
This commit is contained in:
commit
877766d0ae
@ -448,7 +448,7 @@ static int action_bind_sublabel_subsystem_add(
|
||||
char *s, size_t len)
|
||||
{
|
||||
rarch_system_info_t *system = runloop_get_system_info();
|
||||
const struct retro_subsystem_info *subsystem = system ?
|
||||
const struct retro_subsystem_info *subsystem = (system && system->subsystem.data) ?
|
||||
system->subsystem.data + (type - MENU_SETTINGS_SUBSYSTEM_ADD) : NULL;
|
||||
|
||||
if (subsystem && content_get_subsystem_rom_id() < subsystem->num_roms)
|
||||
|
Loading…
x
Reference in New Issue
Block a user