]> wimlib.net Git - wimlib/blobdiff - src/join.c
Cache compression type in WIMStruct and wim_lookup_table_entry
[wimlib] / src / join.c
index 3500654168671247318c0f866f18e0967d5aebf0..2c459d30aa1d4826a80835cf3ee16021d823eabe 100644 (file)
@@ -158,8 +158,7 @@ wimlib_join(const tchar * const *swm_names,
        if (ret)
                goto out_free_wims;
 
-       ret = wimlib_create_new_wim(wimlib_get_compression_type(swms[0]),
-                                   &joined_wim);
+       ret = wimlib_create_new_wim(swms[0]->compression_type, &joined_wim);
        if (ret)
                goto out_free_wims;