From aabb302d60b5fb5fb0bf1403a4f4d3a935f32a11 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 21 Oct 2009 19:09:39 +0000 Subject: 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 --- src/pugixpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 : ""; } }; -- cgit v1.2.3