X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flzx-compress.c;h=a6883ac077a68d36fe91c5c62fc0388c95910114;hp=ea55fca42f9ab24ae3c87373328ac2b750344af6;hb=2f7c6c0c9dbaddac7ca134d20ebe105a3ee1b8c2;hpb=6f1261c57e213d6f12cb7aa8f858f2971bee687e diff --git a/src/lzx-compress.c b/src/lzx-compress.c index ea55fca4..a6883ac0 100644 --- a/src/lzx-compress.c +++ b/src/lzx-compress.c @@ -2653,7 +2653,7 @@ wimlib_lzx_alloc_context(const struct wimlib_lzx_params *params, if (params == NULL) { LZX_DEBUG("Using default algorithm and parameters."); - params = &slow_default; + params = &fast_default; } if (params->algorithm != WIMLIB_LZX_ALGORITHM_SLOW && @@ -2838,7 +2838,7 @@ wimlib_lzx_compress(const void * const restrict uncompressed_data, void * const restrict compressed_data) { int ret; - struct wimlib_lzx_context *ctx; + struct wimlib_lzx_context *ctx = NULL; unsigned compressed_len; ret = wimlib_lzx_alloc_context(NULL, &ctx);