+ avoid memory exception when stl file is empty

This commit is contained in:
wmayer 2016-06-11 16:25:41 +02:00
parent f8c0d2f05d
commit f55fb8cb99

View File

@ -1157,8 +1157,8 @@ bool MeshInput::LoadBinarySTL (std::istream &rstrIn)
{
char szInfo[80];
Base::Vector3f clVects[4];
uint16_t usAtt;
uint32_t ulCt;
uint16_t usAtt = 0;
uint32_t ulCt = 0;
if (!rstrIn || rstrIn.bad() == true)
return false;