+ avoid memory exception when stl file is empty
This commit is contained in:
parent
f8c0d2f05d
commit
f55fb8cb99
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user