From 9c7d93817e768e59a666ad57defb1ca7c605fbe9 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 12 Oct 2009 10:34:49 +0000 Subject: 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 --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3