]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
Fix default capture config
[wimlib] / programs / imagex.c
index eb2e442f960048612d08d24cc4126e0331e089f8..f07b11833cf0484951de4776c2d690137e2db52a 100644 (file)
@@ -785,9 +785,9 @@ static int imagex_capture_or_append(int argc, const char **argv)
        }
 
        ret = wimlib_add_image(w, source, name,
-                              config_str ? config_str : default_capture_config,
-                              config_len, add_image_flags,
-                              imagex_progress_func);
+                              (config_str ? config_str : default_capture_config),
+                              (config_str ? config_len : strlen(default_capture_config)),
+                              add_image_flags, imagex_progress_func);
 
        if (ret != 0)
                goto out;
@@ -1050,7 +1050,6 @@ static int imagex_export(int argc, const char **argv)
                        ret = -1;
                        goto out;
                }
-               compression_type = dest_ctype;
        } else {
                wim_is_new = true;
                /* dest_wimfile is not an existing file, so create a new WIM. */