Finish resetting the list on delete
This commit is contained in:
parent
10ed0d4172
commit
f7b00eb5dc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue