From f4ff81bd454946ad1e6b269b8e6484b66b83ad32 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Thu, 25 Jul 2024 23:36:11 -0500 Subject: [PATCH] Fix uninitialized bytes valgrind warning in ProfileManager.cpp --- ProfileManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProfileManager.cpp b/ProfileManager.cpp index e8dd8954..39db7309 100644 --- a/ProfileManager.cpp +++ b/ProfileManager.cpp @@ -164,8 +164,8 @@ std::vector ProfileManager::LoadProfileToList /*---------------------------------------------------------*\ | Read and verify file header | \*---------------------------------------------------------*/ - char profile_string[16]; - unsigned int profile_version; + char profile_string[16] = ""; + unsigned int profile_version = 0; controller_file.read(profile_string, 16); controller_file.read((char *)&profile_version, sizeof(unsigned int));