adenilson / rpms / zlib

Forked from rpms/zlib 9 months ago
Clone
ad1f37
From f776e1609cc63bf486634ee9bc6226dac2c0d2f3 Mon Sep 17 00:00:00 2001
ad1f37
From: Ondrej Dubaj <odubaj@redhat.com>
ad1f37
Date: Tue, 15 Oct 2019 11:27:15 +0200
ad1f37
Subject: [PATCH] fixed covscan issues
ad1f37
ad1f37
---
ad1f37
 crc32.c           | 2 +-
ad1f37
 deflate.c         | 2 +-
ad1f37
 test/crc32_test.c | 8 ++++----
ad1f37
 3 files changed, 6 insertions(+), 6 deletions(-)
ad1f37
ad1f37
diff --git a/deflate.c b/deflate.c
ad1f37
index 089285a..9b09718 100644
ad1f37
--- a/deflate.c
ad1f37
+++ b/deflate.c
ad1f37
@@ -1015,7 +1015,7 @@ int ZEXPORT deflate (strm, flush)
ad1f37
      */
ad1f37
     if (strm->avail_in != 0 || s->lookahead != 0 ||
ad1f37
         (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
ad1f37
-        block_state bstate;
ad1f37
+        block_state bstate = 0;
ad1f37
 
ad1f37
         bstate = DEFLATE_HOOK(strm, flush, &bstate) ? bstate :
ad1f37
                  s->level == 0 ? deflate_stored(s, flush) :
ad1f37