]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.c
build_dentry_tree() fix error paths
[wimlib] / src / lookup_table.c
index 941ad813e52890b3d1fdc53dc5eaac278e06fcd5..02125aeba50ef07c953abb61959b624917329f00 100644 (file)
@@ -495,7 +495,8 @@ __lookup_resource(const struct lookup_table *table, const u8 hash[])
        struct lookup_table_entry *lte;
        struct hlist_node *pos;
 
-       wimlib_assert(table);
+       wimlib_assert(table != NULL);
+       wimlib_assert(hash != NULL);
 
        i = *(size_t*)hash % table->capacity;
        hlist_for_each_entry(lte, pos, &table->array[i], hash_list)