1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 22:15:07 +00:00

LibCompress: Fix uninitialized member variable in Zlib, found by Coverity

This commit is contained in:
Brian Gianforcaro 2020-08-16 15:15:44 -07:00 committed by Andreas Kling
parent ff0c7da75d
commit 82dbf76dee

View file

@ -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);