mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
set list to NULL after free in case autoconfig directory is empty
This commit is contained in:
parent
45ce8bf773
commit
7a6d2cb5e6
@ -242,7 +242,10 @@ static bool input_autoconfigure_joypad_from_conf_dir(
|
||||
if (!list || !list->size)
|
||||
{
|
||||
if (list)
|
||||
{
|
||||
string_list_free(list);
|
||||
list = NULL;
|
||||
}
|
||||
if (!string_is_empty(params->autoconfig_directory))
|
||||
list = dir_list_new_special(params->autoconfig_directory,
|
||||
DIR_LIST_AUTOCONFIG, "cfg");
|
||||
|
Loading…
x
Reference in New Issue
Block a user