Fixed parsing of empty strings in rare cases for XPath

git-svn-id: http://pugixml.googlecode.com/svn/trunk@171 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2009-10-21 19:09:39 +00:00
parent 40c0a5f09a
commit aabb302d60

View File

@ -1086,7 +1086,7 @@ namespace pugi
const char* contents() const
{
return m_cur_lexeme_contents;
return m_cur_lexeme_contents ? m_cur_lexeme_contents : "";
}
};