mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(menu_displaylist.c) Add null check to sorting function
This commit is contained in:
parent
e99a23a5e2
commit
a014591dfe
@ -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