]> wimlib.net Git - wimlib/blobdiff - src/join.c
Split WIM mount and split WIM documentation
[wimlib] / src / join.c
index 3710eec85ec72ec02fee1bae2d857cf328fd79b2..07cbfa971c92622b08eb72df6b39e9d26e18524a 100644 (file)
 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(&copy->lte_group_list);
        lookup_table_insert(table, copy);
        return 0;
 }