mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
fix null pointer dereferences
This commit is contained in:
parent
2f87f669f1
commit
077ef86bab
@ -1772,10 +1772,13 @@ void content_set_subsystem(unsigned idx)
|
||||
|
||||
pending_subsystem_id = idx;
|
||||
|
||||
strlcpy(pending_subsystem_ident,
|
||||
subsystem->ident, sizeof(pending_subsystem_ident));
|
||||
if (subsystem)
|
||||
{
|
||||
strlcpy(pending_subsystem_ident,
|
||||
subsystem->ident, sizeof(pending_subsystem_ident));
|
||||
|
||||
pending_subsystem_rom_num = subsystem->num_roms;
|
||||
pending_subsystem_rom_num = subsystem->num_roms;
|
||||
}
|
||||
|
||||
RARCH_LOG("[subsystem] settings current subsytem to: %d(%s) roms: %d\n",
|
||||
pending_subsystem_id, pending_subsystem_ident, pending_subsystem_rom_num);
|
||||
|
Loading…
x
Reference in New Issue
Block a user