Fix setting compression method for already changed (or newly added) file.
Enable test case.
diff --git a/lib/zip_set_file_compression.c b/lib/zip_set_file_compression.c
index e62cf45..5402392 100644
--- a/lib/zip_set_file_compression.c
+++ b/lib/zip_set_file_compression.c
@@ -75,10 +75,10 @@
_zip_error_set(&za->error, ZIP_ER_MEMORY, 0);
return -1;
}
-
- e->changes->comp_method = method;
- e->changes->changed |= ZIP_DIRENT_COMP_METHOD;
}
+
+ e->changes->comp_method = method;
+ e->changes->changed |= ZIP_DIRENT_COMP_METHOD;
}
return 0;