Fixed xml_node::remove_attribute in case of empty attribute as a parameter
git-svn-id: http://pugixml.googlecode.com/svn/trunk@151 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
8cc555de36
commit
9c7d93817e
@ -2426,7 +2426,7 @@ namespace pugi
|
||||
|
||||
void xml_node::remove_attribute(const xml_attribute& a)
|
||||
{
|
||||
if (!_root) return;
|
||||
if (!_root || !a._attr) return;
|
||||
|
||||
// check that attribute belongs to *this
|
||||
xml_attribute_struct* attr = a._attr;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user