adenilson / rpms / zlib

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