mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Prevent null pointer dereference crash
This commit is contained in:
parent
1a73b1d144
commit
bd684065c3
@ -2039,7 +2039,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
if (audio_driver_alive())
|
||||
return false;
|
||||
|
||||
if (!settings->audio.mute_enable && !audio_driver_start())
|
||||
if (settings && !settings->audio.mute_enable && !audio_driver_start())
|
||||
{
|
||||
RARCH_ERR("%s\n",
|
||||
msg_hash_to_str(MSG_FAILED_TO_START_AUDIO_DRIVER));
|
||||
|
Loading…
Reference in New Issue
Block a user