mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +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())
|
if (audio_driver_alive())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!settings->audio.mute_enable && !audio_driver_start())
|
if (settings && !settings->audio.mute_enable && !audio_driver_start())
|
||||||
{
|
{
|
||||||
RARCH_ERR("%s\n",
|
RARCH_ERR("%s\n",
|
||||||
msg_hash_to_str(MSG_FAILED_TO_START_AUDIO_DRIVER));
|
msg_hash_to_str(MSG_FAILED_TO_START_AUDIO_DRIVER));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user