content_file_list_init - size < 1 will never happen, checked outside

before calling the function
This commit is contained in:
libretroadmin 2022-07-09 13:24:01 +02:00
parent c2f618d394
commit 274ce86d89

View File

@ -420,8 +420,6 @@ static content_file_list_t *content_file_list_init(size_t size)
{
content_file_list_t *file_list = NULL;
if (size < 1)
return NULL;
if (!(file_list = (content_file_list_t *)malloc(sizeof(*file_list))))
return NULL;