Browse Source

Initialize member fields

adaptive-webui-19844
gxcreator 3 years ago committed by Chocobo1
parent
commit
307f5e6e56
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/base/utils/gzip.cpp

4
src/base/utils/gzip.cpp

@ -48,7 +48,7 @@ QByteArray Utils::Gzip::compress(const QByteArray &data, const int level, bool *
const int BUFSIZE = 128 * 1024; const int BUFSIZE = 128 * 1024;
std::vector<char> tmpBuf(BUFSIZE); std::vector<char> tmpBuf(BUFSIZE);
z_stream strm; z_stream strm {};
strm.zalloc = Z_NULL; strm.zalloc = Z_NULL;
strm.zfree = Z_NULL; strm.zfree = Z_NULL;
strm.opaque = Z_NULL; strm.opaque = Z_NULL;
@ -109,7 +109,7 @@ QByteArray Utils::Gzip::decompress(const QByteArray &data, bool *ok)
const int BUFSIZE = 1024 * 1024; const int BUFSIZE = 1024 * 1024;
std::vector<char> tmpBuf(BUFSIZE); std::vector<char> tmpBuf(BUFSIZE);
z_stream strm; z_stream strm {};
strm.zalloc = Z_NULL; strm.zalloc = Z_NULL;
strm.zfree = Z_NULL; strm.zfree = Z_NULL;
strm.opaque = Z_NULL; strm.opaque = Z_NULL;

Loading…
Cancel
Save