From 886968335bc64a40f5a45780169c1264d1116b65 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 19 Jan 2016 20:26:19 +0100 Subject: [PATCH] FIX: Coverity scan, complain on z_stream.opaque is not initialized. Google it,says use: Z_NULL --- client/fpga_compress.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/fpga_compress.c b/client/fpga_compress.c index 6af1846e..a0ecbe48 100644 --- a/client/fpga_compress.c +++ b/client/fpga_compress.c @@ -113,6 +113,7 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile) compressed_fpga_stream.avail_in = i; compressed_fpga_stream.zalloc = fpga_deflate_malloc; compressed_fpga_stream.zfree = fpga_deflate_free; + compressed_fpga_stream.opaque = Z_NULL; ret = deflateInit2(&compressed_fpga_stream, COMPRESS_LEVEL, -- 2.39.2