diff --git a/Source/Core/DiscIO/CompressedBlob.cpp b/Source/Core/DiscIO/CompressedBlob.cpp index 61549e5bda..c3b79baf1c 100644 --- a/Source/Core/DiscIO/CompressedBlob.cpp +++ b/Source/Core/DiscIO/CompressedBlob.cpp @@ -163,8 +163,7 @@ bool CompressFileToBlob(const std::string& infile, const std::string& outfile, u scrubbing = true; } - z_stream z; - memset(&z, 0, sizeof(z)); + z_stream z = {}; if (deflateInit(&z, 9) != Z_OK) return false;