From f55fb8cb99f4428e21578c523971eca6bfd69b7c Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 11 Jun 2016 16:25:41 +0200 Subject: [PATCH] + avoid memory exception when stl file is empty --- src/Mod/Mesh/App/Core/MeshIO.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Mesh/App/Core/MeshIO.cpp b/src/Mod/Mesh/App/Core/MeshIO.cpp index e161145994..3ce412685b 100644 --- a/src/Mod/Mesh/App/Core/MeshIO.cpp +++ b/src/Mod/Mesh/App/Core/MeshIO.cpp @@ -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;