]> wimlib.net Git - wimlib/blobdiff - src/add_image.c
Multithreaded stream writing fixes
[wimlib] / src / add_image.c
index e65e1bce0fd3431b3e905c7c43e00120a0e03029..923d361e14bb2647cb9355d340abdd7ce2602fee 100644 (file)
@@ -59,8 +59,8 @@ add_new_dentry_tree(WIMStruct *w, struct wim_dentry *root_dentry,
                    struct wim_security_data *sd)
 {
        struct wim_image_metadata *new_imd;
-       int ret;
        struct wim_lookup_table_entry *metadata_lte;
+       int ret;
 
        metadata_lte = new_lookup_table_entry();
        if (!metadata_lte)
@@ -1004,8 +1004,7 @@ wimlib_add_image_multisource(WIMStruct *w,
        }
 
        imd = w->image_metadata[w->hdr.image_count - 1];
-       INIT_LIST_HEAD(&imd->unhashed_streams);
-       list_splice(&unhashed_streams, &imd->unhashed_streams);
+       list_transfer(&unhashed_streams, &imd->unhashed_streams);
 
 #ifdef WITH_NTFS_3G
        imd->ntfs_vol = ntfs_vol;