]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.c
Some preparations for supporting NTFS capture and apply.
[wimlib] / src / lookup_table.c
index a24b02eb9c1725859d02938a0ee5728f51935aae..9358093429216993661c2bd7cc40a6e20eb70ea9 100644 (file)
@@ -55,7 +55,7 @@ struct lookup_table_entry *new_lookup_table_entry()
 {
        struct lookup_table_entry *lte;
        
-       lte = MALLOC(sizeof(struct lookup_table_entry));
+       lte = CALLOC(1, sizeof(struct lookup_table_entry));
        if (!lte) {
                ERROR("Out of memory (tried to allocate %zu bytes for "
                      "lookup table entry)",
@@ -63,12 +63,8 @@ struct lookup_table_entry *new_lookup_table_entry()
                return NULL;
        }
 
-       lte->next         = NULL;
-       lte->file_on_disk = NULL;
-       lte->other_wim_fp = NULL;
        lte->part_number  = 1;
        lte->refcnt       = 1;
-       lte->staging_num_times_opened = 0;
        return lte;
 }