summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-12 10:34:49 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-12 10:34:49 +0000
commit9c7d93817e768e59a666ad57defb1ca7c605fbe9 (patch)
tree24df7921c65b5bb1920523c4566a668a7ff8cba0
parent8cc555de36ff04d4d6cfcd7470b487e72f745b23 (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
-rw-r--r--src/pugixml.cpp2
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;