This commit is contained in:
twinaphex 2019-05-19 05:50:28 +02:00
parent f49f33f546
commit 9f297f5f7c

View File

@ -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)
{
if (!new_data)
return false;
memset(&new_data[list->capacity], 0, item_size * (nitems - list->capacity));
list->list = new_data;
list->capacity = nitems;
}
return new_data != NULL;
return true;
}
bool file_list_prepend(file_list_t *list,