diff --git a/src/filed/compression.c b/src/filed/compression.c index 94826ab514f..d103b8a1b3a 100644 --- a/src/filed/compression.c +++ b/src/filed/compression.c @@ -370,12 +370,9 @@ bool setup_compression_context(b_ctx &bctx) zfast_stream *pZfastStream = (zfast_stream *)bctx.jcr->pZfast_compress_workset; if (pZfastStream->total_in == 0) { int zstat; - zfast_stream_compressor compressor; + zfast_stream_compressor compressor = COMPRESSOR_FASTLZ; switch (bctx.ff_pkt->Compress_algo) { - case COMPRESS_FZFZ: - compressor = COMPRESSOR_FASTLZ; - break; case COMPRESS_FZ4L: case COMPRESS_FZ4H: compressor = COMPRESSOR_LZ4; @@ -661,13 +658,10 @@ static bool decompress_with_fastlz(JCR *jcr, char **data, uint32_t *length, uint { int zstat; zfast_stream stream; - zfast_stream_compressor compressor; + zfast_stream_compressor compressor = COMPRESSOR_FASTLZ; char ec1[50]; /* Buffer printing huge values */ switch (comp_magic) { - case COMPRESS_FZFZ: - compressor = COMPRESSOR_FASTLZ; - break; case COMPRESS_FZ4L: case COMPRESS_FZ4H: compressor = COMPRESSOR_LZ4; diff --git a/src/stored/bextract.c b/src/stored/bextract.c index ceea07ccfb6..15bfd648d9f 100644 --- a/src/stored/bextract.c +++ b/src/stored/bextract.c @@ -445,12 +445,9 @@ static bool decompress_with_fastlz(DEV_RECORD *rec, uint32_t comp_magic) { int zstat; zfast_stream stream; - zfast_stream_compressor compressor; + zfast_stream_compressor compressor = COMPRESSOR_FASTLZ; switch (comp_magic) { - case COMPRESS_FZFZ: - compressor = COMPRESSOR_FASTLZ; - break; case COMPRESS_FZ4L: case COMPRESS_FZ4H: compressor = COMPRESSOR_LZ4;