(retroarch.c) Fix potential segfault in rarch_main_command

This commit is contained in:
Twinaphex 2015-03-21 23:43:00 +01:00
parent d7d92cf83e
commit 06d643adaa

View File

@ -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 */