diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-21 19:09:39 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-21 19:09:39 +0000 |
commit | aabb302d60b5fb5fb0bf1403a4f4d3a935f32a11 (patch) | |
tree | 1d03e978beb41872a87042f5a69d9ce0e2e970e8 | |
parent | 40c0a5f09a68b18409793bf1dffcba19a8704ec7 (diff) |
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
-rw-r--r-- | src/pugixpath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index e262d68..b6d089c 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -1086,7 +1086,7 @@ namespace pugi const char* contents() const
{
- return m_cur_lexeme_contents;
+ return m_cur_lexeme_contents ? m_cur_lexeme_contents : "";
}
};
|