From 815b7bec967c773a3c8605dfe12a7cfefa844d31 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 27 Nov 2014 11:12:17 -0800 Subject: [PATCH] DiscIO: Change a memset() to zero initialization. --- Source/Core/DiscIO/CompressedBlob.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;