(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,
|
void file_list_get_at_offset(const file_list_t *list, size_t index,
|
||||||
const char **path, unsigned *file_type)
|
const char **path, unsigned *file_type)
|
||||||
{
|
{
|
||||||
if (!list)
|
if (!list || !list->list)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (path)
|
if (path)
|
||||||
|
|
Loading…
Reference in New Issue