소스 검색

Merge pull request #517 from Dmitry-Me/initMemberVars

Initialize member variables
Lee Thomason 9 년 전
부모
커밋
1f5ab7cd0b
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      tinyxml2.cpp

+ 3 - 1
tinyxml2.cpp

@@ -1961,7 +1961,9 @@ XMLDocument::XMLDocument( bool processEntities, Whitespace whitespace ) :
     _processEntities( processEntities ),
     _errorID(XML_SUCCESS),
     _whitespace( whitespace ),
-    _charBuffer( 0 )
+    _errorLineNum( 0 ),
+    _charBuffer( 0 ),
+    _parseCurLineNum( 0 )
 {
     // avoid VC++ C4355 warning about 'this' in initializer list (C4355 is off by default in VS2012+)
     _document = this;