mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
(retroarch.c) Fix potential segfault in rarch_main_command
This commit is contained in:
parent
d7d92cf83e
commit
06d643adaa
@ -2095,7 +2095,7 @@ void rarch_main_set_state(unsigned cmd)
|
||||
|
||||
driver_set_nonblock_state(driver->nonblock_state);
|
||||
|
||||
if (settings->menu.pause_libretro)
|
||||
if (settings && settings->menu.pause_libretro)
|
||||
rarch_main_command(RARCH_CMD_AUDIO_START);
|
||||
|
||||
/* Prevent stray input from going to libretro core */
|
||||
|
Loading…
Reference in New Issue
Block a user