]> wimlib.net Git - wimlib/blobdiff - src/add_image.c
write.c, lookup table.c: cleanup
[wimlib] / src / add_image.c
index c4c1033bb2de3b691313bf5c8e1f4955b623a110..923d361e14bb2647cb9355d340abdd7ce2602fee 100644 (file)
@@ -1004,8 +1004,7 @@ wimlib_add_image_multisource(WIMStruct *w,
        }
 
        imd = w->image_metadata[w->hdr.image_count - 1];
        }
 
        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;
 
 #ifdef WITH_NTFS_3G
        imd->ntfs_vol = ntfs_vol;