Check if collections list size is greater than 0 first

This commit is contained in:
twinaphex 2015-10-26 21:06:14 +01:00
parent 30296ff81e
commit 071f828b5e

View File

@ -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;