mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Cleanups
This commit is contained in:
parent
f49f33f546
commit
9f297f5f7c
@ -39,15 +39,15 @@ bool file_list_reserve(file_list_t *list, size_t nitems)
|
||||
|
||||
new_data = (struct item_file*)realloc(list->list, nitems * item_size);
|
||||
|
||||
if (new_data)
|
||||
{
|
||||
memset(&new_data[list->capacity], 0, item_size * (nitems - list->capacity));
|
||||
if (!new_data)
|
||||
return false;
|
||||
|
||||
list->list = new_data;
|
||||
list->capacity = nitems;
|
||||
}
|
||||
memset(&new_data[list->capacity], 0, item_size * (nitems - list->capacity));
|
||||
|
||||
return new_data != NULL;
|
||||
list->list = new_data;
|
||||
list->capacity = nitems;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool file_list_prepend(file_list_t *list,
|
||||
|
Loading…
x
Reference in New Issue
Block a user