aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-18 15:44:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-18 15:44:54 +0200
commit22af701fa95107350f2a8e9c60d7aa59228a567d (patch)
tree3e0e49559cb935d32ca74711dc0d62d74a72cdaf
parent545558be0d465807b3526b6a0f17ff9f623d9c59 (diff)
Fix bug in character accumulation logic
-rw-r--r--xml/parser.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xml/parser.cxx b/xml/parser.cxx
index 5e117b9..8cec4a1 100644
--- a/xml/parser.cxx
+++ b/xml/parser.cxx
@@ -642,7 +642,9 @@ namespace xml
// Get and parse the next chunk of data until we get the next event
// or reach eof.
//
- event_ = eof;
+ if (!accumulate_)
+ event_ = eof;
+
XML_Status s;
do
{