]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation issue when ZLIB is available and not LZO and ZSTD
authorEric Bollengier <eric@baculasystems.com>
Thu, 18 Nov 2021 13:59:43 +0000 (14:59 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
bacula/src/filed/backup.c

index abedc64a29f084a75d86c9e6a38aa04b373075e2..4142ea7f2d6263278eec98510bfb69f93e36b590 100644 (file)
@@ -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;