X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Flookup_table.c;h=118cd06558dac6a2cb57a1b5b35aafe42112c219;hb=49a63aa13cdeb4c1348697ccd92207a1a65ec7b0;hp=553cf33b1c413f4dbfa430291b8439b85abec869;hpb=4757f17833c96b8c83a7e17cbc6f374c449d60db;p=wimlib diff --git a/src/lookup_table.c b/src/lookup_table.c index 553cf33b..118cd065 100644 --- a/src/lookup_table.c +++ b/src/lookup_table.c @@ -75,8 +75,10 @@ new_lookup_table_entry(void) lte = CALLOC(1, sizeof(struct wim_lookup_table_entry)); if (lte) { - lte->part_number = 1; - lte->refcnt = 1; + lte->part_number = 1; + lte->refcnt = 1; + BUILD_BUG_ON(RESOURCE_NONEXISTENT != 0); + BUILD_BUG_ON(WIMLIB_COMPRESSION_TYPE_NONE != 0); } else { ERROR("Out of memory (tried to allocate %zu bytes for " "lookup table entry)", @@ -711,6 +713,7 @@ write_wim_lookup_table_from_stream_list(struct list_head *stream_list, WIM_RESHDR_FLAG_METADATA, out_fd, WIMLIB_COMPRESSION_TYPE_NONE, + 0, out_res_entry, NULL, write_resource_flags,