From bd684065c38d7456784d416d67d29f2437d5ec91 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 30 Oct 2016 02:18:03 +0200 Subject: [PATCH] Prevent null pointer dereference crash --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.c b/command.c index 34438723f2..3ffe0eb31e 100644 --- a/command.c +++ b/command.c @@ -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));