浏览代码

obj: add missing init.

Kim Kulling 5 年之前
父节点
当前提交
7d624e7f60
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/Obj/ObjFileParser.cpp

+ 1 - 1
code/Obj/ObjFileParser.cpp

@@ -67,7 +67,7 @@ ObjFileParser::ObjFileParser() :
         m_pIO(nullptr),
         m_progress(nullptr),
         m_originalObjFileName() {
-    // empty
+    std::fill_n(m_buffer, Buffersize, '\0');
 }
 
 ObjFileParser::ObjFileParser(IOStreamBuffer<char> &streamBuffer, const std::string &modelName,