(menu_displaylist.c) Add null check to sorting function

This commit is contained in:
Higor Eurípedes 2015-07-09 19:43:45 -03:00
parent e99a23a5e2
commit a014591dfe

View File

@ -1528,6 +1528,9 @@ static void menu_displaylist_push_horizontal_menu_list_content(
static int menu_displaylist_sort_playlist(const content_playlist_entry_t *a,
const content_playlist_entry_t *b)
{
if (!a->label || !b->label)
return 0;
return strcasecmp(a->label, b->label);
}