Fix uninitialized bytes valgrind warning in ProfileManager.cpp
This commit is contained in:
parent
e42cefdf09
commit
f4ff81bd45
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue