summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-16 15:15:44 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-17 09:17:57 +0200
commit82dbf76deeae15440fabf9f1bae9c13295a07fff (patch)
tree5af26d8963cd9d8e81676c1ee713c1c95198fa5e
parentff0c7da75d68aa08b5a68914ab98ce03da40f4f6 (diff)
downloadserenity-82dbf76deeae15440fabf9f1bae9c13295a07fff.zip
LibCompress: Fix uninitialized member variable in Zlib, found by Coverity
-rw-r--r--Libraries/LibCompress/Zlib.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibCompress/Zlib.cpp b/Libraries/LibCompress/Zlib.cpp
index 7aadc2d5ea..2ce9a415b6 100644
--- a/Libraries/LibCompress/Zlib.cpp
+++ b/Libraries/LibCompress/Zlib.cpp
@@ -45,6 +45,7 @@ Zlib::Zlib(ReadonlyBytes data)
m_check_bits = flags & 0xF;
m_has_dictionary = (flags >> 5) & 0x1;
m_compression_level = (flags >> 6) & 0x3;
+ m_checksum = 0;
ASSERT(m_compression_method == 8);
ASSERT(m_compression_info == 7);