From b06ce004c843448ea8a7dfd6f468f834af88210e Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Sat, 17 Apr 2021 12:42:10 +0000 Subject: [PATCH] Add new alloc --- src/memory/list.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/memory/list.c b/src/memory/list.c index 0e1e5d3..cc9d256 100644 --- a/src/memory/list.c +++ b/src/memory/list.c @@ -27,9 +27,8 @@ void* uirc_list_append(llist_t* anchor, void* content) { assert(content != NULL); - llist_t* new = llist_elem_alloc(); + llist_t* new = llist_elem_alloc(content); if (new == NULL) return NULL; - llist_elem_set_cont(new, content); llist_elem_conn(anchor, new); return new; }