* details.
*
* You should have received a copy of the GNU Lesser General Public License
- * along with this file; if not, see http://www.gnu.org/licenses/.
+ * along with this file; if not, see https://www.gnu.org/licenses/.
*/
#ifdef HAVE_CONFIG_H
{
bool destructive;
struct wimlib_compressor *c;
+ int ret;
+
+ ret = wimlib_global_init(0);
+ if (ret)
+ return ret;
destructive = (compression_level & WIMLIB_COMPRESSOR_FLAG_DESTRUCTIVE);
compression_level &= ~WIMLIB_COMPRESSOR_FLAG_DESTRUCTIVE;
c->ctype = ctype;
c->max_block_size = max_block_size;
if (c->ops->create_compressor) {
- int ret;
-
if (compression_level == 0)
compression_level = default_compression_levels[ctype];
if (compression_level == 0)