mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-26 10:29:22 -04:00
Fix uninitialized bytes valgrind warning in ProfileManager.cpp
This commit is contained in:
1 parent
e42cefdf09
commit
f4ff81bd45
1 file changed
+2
-2
+2
-2
@@ -164,8 +164,8 @@ std::vector<RGBController*> 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));
|
||||
|
||||
Reference in new issue
Block a user