From: Eric Bollengier Date: Thu, 18 Nov 2021 13:59:43 +0000 (+0100) Subject: Fix compilation issue when ZLIB is available and not LZO and ZSTD X-Git-Tag: Beta-15.0.0~764 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c4aeda26dfeaf32ab61903eb04bf54da16f37c5;p=thirdparty%2Fbacula.git Fix compilation issue when ZLIB is available and not LZO and ZSTD --- diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index abedc64a2..4142ea7f2 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -1261,7 +1261,10 @@ static bool setup_compression(bctx_t &bctx) bctx.max_compress_len = 0; bctx.cbuf = NULL; bctx.cbuf2 = NULL; + +#if defined(HAVE_LZO) || defined(HAVE_ZSTD) memset(&bctx.ch, 0, sizeof(comp_stream_header)); +#endif # ifdef HAVE_LIBZ int zstat;