commit | 7221b49fea28eea474cc0e4ebf077cd68e88002e | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Fri Mar 03 15:45:51 2017 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Fri Mar 03 15:45:51 2017 +0300 |
tree | 3928346ef04a664919b143eaa49afce745c04d5c | |
parent | 92c0ef327f63d96e7ebad41aafcc38138535e58a [diff] [blame] |
Suppress C6011 code analysis false positive warning
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index d3adddc..09d7682 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1838,6 +1838,7 @@ { TIXMLASSERT( sizeof( XMLAttribute ) == _document->_attributePool.ItemSize() ); XMLAttribute* attrib = new (_document->_attributePool.Alloc() ) XMLAttribute(); + TIXMLASSERT( attrib ); attrib->_memPool = &_document->_attributePool; attrib->_memPool->SetTracked(); return attrib;