Fix use of uninitialized variable in File_scanner_OFF.h

This commit is contained in:
Giles Bathgate 2020-11-18 07:43:12 +00:00
parent fe48ffea42
commit 06a67b64a0
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){