static int copy_lte_to_table(struct lookup_table_entry *lte, void *table)
{
struct lookup_table_entry *copy;
- copy = new_lookup_table_entry();
+ copy = MALLOC(sizeof(struct lookup_table_entry));
if (!copy)
return WIMLIB_ERR_NOMEM;
memcpy(copy, lte, sizeof(struct lookup_table_entry));
+ INIT_LIST_HEAD(©->lte_group_list);
lookup_table_insert(table, copy);
return 0;
}