fix(linked list): fixed appending to linked list
This commit is contained in:
parent
34246c10d7
commit
fee99c8cdd
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ FledastyError fledasty_linked_list_append(FledastyLinkedList *current_linked_lis
|
||||||
new_node->next = NULL;
|
new_node->next = NULL;
|
||||||
|
|
||||||
current_linked_list->end->next = new_node;
|
current_linked_list->end->next = new_node;
|
||||||
|
current_linked_list->end = new_node;
|
||||||
current_linked_list->size += 1;
|
current_linked_list->size += 1;
|
||||||
|
|
||||||
return FLEDASTY_ERROR_NONE;
|
return FLEDASTY_ERROR_NONE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue