diff --git a/src/lst/lst_addback.c b/src/lst/lst_addback.c index 5f80d92..4cb98f0 100644 --- a/src/lst/lst_addback.c +++ b/src/lst/lst_addback.c @@ -9,7 +9,7 @@ void lst_addback(lst **root, lst *nouveau) nouveau->next = NULL; if (current == NULL) { - current = nouveau; + *root = nouveau; return; } while (current->next != NULL)