From f61b9e1747b5c7041dd768877740d81cbf997c8c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 30 Sep 2017 08:24:01 +0200 Subject: [PATCH] Cleanup --- tasks/task_autodetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/task_autodetect.c b/tasks/task_autodetect.c index 539fccd9c3..e8b45e80db 100644 --- a/tasks/task_autodetect.c +++ b/tasks/task_autodetect.c @@ -243,7 +243,7 @@ static bool input_autoconfigure_joypad_from_conf_dir( { if (list) string_list_free(list); - if (params && !string_is_empty(params->autoconfig_directory)) + if (!string_is_empty(params->autoconfig_directory)) list = dir_list_new_special(params->autoconfig_directory, DIR_LIST_AUTOCONFIG, "cfg"); }