mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-30 14:53:39 +00:00
Check if collections list size is greater than 0 first
This commit is contained in:
parent
30296ff81e
commit
071f828b5e
@ -2496,7 +2496,7 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
menu_hash_to_str(MENU_LABEL_CONTENT_HISTORY_SIZE), PARSE_ONLY_UINT, false);
|
||||
{
|
||||
struct string_list *str_list = dir_list_new_special(settings->playlist_directory, DIR_LIST_COLLECTIONS);
|
||||
if (str_list)
|
||||
if (str_list && str_list->size)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user