Add new alloc

This commit is contained in:
Alex D. 2021-04-17 12:42:10 +00:00
parent acfd0ea3dc
commit b06ce004c8
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}