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
Notes: sideshowbarker 2024-07-19 03:31:27 +09:00

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