From 5d59871c0561c36c4145801e6c4bcd02d5f8dbc9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 23 Sep 2016 02:11:51 +0200 Subject: [PATCH] Prevent null pointer dereference --- tasks/task_content.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index f944c6912c..a1af3e235c 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -707,7 +707,7 @@ static bool content_file_init(struct string_list *temporary_content) const struct retro_subsystem_info *special = NULL; global_t *global = global_get_ptr(); - if (!string_is_empty(global->subsystem)) + if (global && !string_is_empty(global->subsystem)) { special = init_content_file_subsystem(&ret); if (!ret)