mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Merge pull request #1937 from heuripedes/master
(menu_displaylist.c) Add null check to sorting function
This commit is contained in:
commit
5d6ae90ab9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user