From 183c9af18a1a5714102c7f9dc93b92398381be85 Mon Sep 17 00:00:00 2001 From: Gregory Lirent Date: Thu, 9 Jun 2022 11:08:28 +0300 Subject: [PATCH] Fix list (copy) lnode push --- src/list/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/list/copy.c b/src/list/copy.c index a68334f..fb714ae 100644 --- a/src/list/copy.c +++ b/src/list/copy.c @@ -25,8 +25,8 @@ static void push_next(list_t* x, vnode_t v, vtype t) { node->node = v; node->type = t; - x->last = node; x->last->next = node; + x->last = node; } /*#####################################################################################################################*/