X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flookup_table.c;h=8c394f70ee73dadd157352d0dc5980abc9c96e92;hp=01f7383571c5f00899b6c7814f9f0e8323d398df;hb=3394534dd649ddb295ef33b8e66aa91570c485a4;hpb=882dc6e5dece7f521b9de6c4337aad0411ed00da;ds=sidebyside diff --git a/src/lookup_table.c b/src/lookup_table.c index 01f73835..8c394f70 100644 --- a/src/lookup_table.c +++ b/src/lookup_table.c @@ -727,7 +727,6 @@ read_wim_lookup_table(WIMStruct *wim) &((const struct wim_lookup_table_entry_disk*)buf)[i]; struct wim_reshdr reshdr; u16 part_number; - struct wim_lookup_table_entry *duplicate_entry; /* Get the resource header */ get_wim_reshdr(&disk_entry->reshdr, &reshdr); @@ -947,8 +946,7 @@ read_wim_lookup_table(WIMStruct *wim) /* Lookup table entry for a non-metadata stream. */ /* Ignore this stream if it's a duplicate. */ - duplicate_entry = lookup_stream(table, cur_entry->hash); - if (duplicate_entry) { + if (lookup_stream(table, cur_entry->hash)) { num_duplicate_entries++; goto free_cur_entry_and_continue; }