diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-12 10:34:49 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-12 10:34:49 +0000 |
commit | 9c7d93817e768e59a666ad57defb1ca7c605fbe9 (patch) | |
tree | 24df7921c65b5bb1920523c4566a668a7ff8cba0 /src | |
parent | 8cc555de36ff04d4d6cfcd7470b487e72f745b23 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index ad39ba7..ffefdd5 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -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;
|