Merge pull request #65 from GilesBathgate/fix-use-of-uninitialized-variable

Fix use of uninitialized variable in File_scanner_OFF.h
This commit is contained in:
Maxime GIMENO 2020-11-27 09:18:55 +01:00 committed by GitHub
commit ff6238e478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ public:
//split it into strings //split it into strings
std::istringstream iss(col); std::istringstream iss(col);
//holds the rgb values //holds the rgb values
unsigned char rgb[3]; unsigned char rgb[3]{};
int index =0; int index =0;
//split the string into numbers //split the string into numbers
while(iss>>color_info){ while(iss>>color_info){