From 3732452c1ddc67e35262197132dc7bad0e6e81e2 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 28 Jun 2023 18:14:35 +0200 Subject: [PATCH] fix: lst_addback --- src/lst/lst_addback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)