]> wimlib.net Git - wimlib/blobdiff - src/solid.c
Make stream_hash() return NULL for unhashed streams
[wimlib] / src / solid.c
index 2aecf5c9c75a5ee7cf5b35dce19f07c00e0dc2ea..35f2eef0a20695c3a279af668a1c62ae22a4b3ed 100644 (file)
@@ -139,6 +139,8 @@ dentry_fill_in_solid_sort_names(struct wim_dentry *dentry, void *_blob_table)
        struct blob_descriptor *blob;
 
        hash = inode_get_hash_of_unnamed_data_stream(inode);
+       if (!hash) /* unhashed? */
+               return 0;
        head = &blob_table->table[load_size_t_unaligned(hash) %
                                  blob_table->capacity];
        hlist_for_each_entry(blob, head, hash_list_2) {