From 70b9ffe6a58b71122aa60280bae4194326d026a0 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 13 Feb 2021 17:24:20 -0800 Subject: [PATCH] Tidy up binaryBlob initialization to use SDL_zeroa() It's simpler and more concise than writing out the SDL_memset() in full, which means you're less likely to screw up those lines of code. --- desktop_version/src/BinaryBlob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/BinaryBlob.cpp b/desktop_version/src/BinaryBlob.cpp index a4a4779b..0479e873 100644 --- a/desktop_version/src/BinaryBlob.cpp +++ b/desktop_version/src/BinaryBlob.cpp @@ -10,8 +10,8 @@ binaryBlob::binaryBlob() { numberofHeaders = 0; - SDL_memset(m_headers, 0, sizeof(m_headers)); - SDL_memset(m_memblocks, 0, sizeof(m_memblocks)); + SDL_zeroa(m_headers); + SDL_zeroa(m_memblocks); } #ifdef VVV_COMPILEMUSIC