Finish resetting the list on delete

This commit is contained in:
Nick Chambers 2022-11-17 11:15:02 -06:00
parent 10ed0d4172
commit f7b00eb5dc
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@ void ordinary_list_delete(struct ordinary_list *list) {
free(node); // R.I.P.
node = next;
}
list->head = NULL;
list->tail = NULL;
list->count = 0;
list->limit = 0;
}
uint8_t ordinary_list_empty(struct ordinary_list *list) {