commit | 9c3122b89b9026d48949757ab56b115cc82ac4f4 | [log] [tgz] |
---|---|---|
author | Sarat Addepalli <SirR4T@users.noreply.github.com> | Tue May 19 12:49:32 2015 +0530 |
committer | Sarat Addepalli <SirR4T@users.noreply.github.com> | Tue May 19 12:49:32 2015 +0530 |
tree | fc112a046dccecb69f6ae2da5c3c30ae072a90de | |
parent | 13b2d734278f95b87f9aef654683c6abf63ef985 [diff] [blame] |
Bypass asserts for `XMLDocument::Value()` When the node is an XMLDocument, bypass calling the `_value.GetStr()` function, since we know we have to return `( const char* )0` inevitably. This fixes #323
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 6e1985b..e6bb328 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -645,6 +645,8 @@ const char* XMLNode::Value() const { + if ( this->ToDocument() ) + return ( const char* )0; return _value.GetStr(); }