mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(file_list.c) Make file_list_get_at_offset more robust
This commit is contained in:
parent
711a776f02
commit
d3c36ad5ad
@ -162,7 +162,7 @@ void file_list_sort_on_alt(file_list_t *list)
|
||||
void file_list_get_at_offset(const file_list_t *list, size_t index,
|
||||
const char **path, unsigned *file_type)
|
||||
{
|
||||
if (!list)
|
||||
if (!list || !list->list)
|
||||
return;
|
||||
|
||||
if (path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user