From 8233e54824aeed63207dc183ba55a67881efe9e3 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sun, 21 Jul 2013 02:07:39 +0800 Subject: [PATCH] Bug #198 Incorrect XPath evaluation --- src/wraplibxml.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wraplibxml.cpp b/src/wraplibxml.cpp index 7c3217b..afe21ce 100755 --- a/src/wraplibxml.cpp +++ b/src/wraplibxml.cpp @@ -356,6 +356,7 @@ bool WrapLibxml::xpath ( const std::string& path, const std::string& fileName ) output += ( const char * ) xmlBufferContent ( bufferPtr ); output += '\n'; + xmlBufferEmpty ( bufferPtr ); } xmlBufferFree ( bufferPtr ); break;