Improve string_list_deinitialize

This commit is contained in:
twinaphex 2020-08-24 15:11:38 +02:00
parent 513909a581
commit 91cfcd1b83

View File

@ -109,7 +109,12 @@ bool string_list_deinitialize(struct string_list *list)
{
if (!list)
return false;
return string_list_deinitialize_internal(list);
if (!string_list_deinitialize_internal(list))
return false;
list->elems = NULL;
list->size = 0;
list->cap = 0;
return true;
}
/**