fixed print list

This commit is contained in:
Jonathan Turner 2023-11-29 18:19:44 -05:00
parent f3d607859c
commit e22cb17067

View File

@ -465,7 +465,8 @@ void print_list( node *head, bool ft_descending_ascending)
node *iterator = NULL; node *iterator = NULL;
if( ft_descending_ascending) { if( ft_descending_ascending) {
iterator = head; iterator = head;
print_node(iterator);
iterator = iterator->next;
} else { } else {
iterator = get_tail( head); iterator = get_tail( head);
while( iterator != NULL) { while( iterator != NULL) {