fix: lst_addback
This commit is contained in:
parent
216cb22cae
commit
3732452c1d
@ -9,7 +9,7 @@ void lst_addback(lst **root, lst *nouveau)
|
|||||||
nouveau->next = NULL;
|
nouveau->next = NULL;
|
||||||
if (current == NULL)
|
if (current == NULL)
|
||||||
{
|
{
|
||||||
current = nouveau;
|
*root = nouveau;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while (current->next != NULL)
|
while (current->next != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user