summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-10 21:36:05 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-10 21:36:05 +0000
commit157f720e12eb687235d86bbc53cf6c3d240770f1 (patch)
treebaefc44432f8f4943fb0c51e4feaa106c23bceab /src
parent4eccdbb8dcbffe8c5028a3f69f7661d95e11d44a (diff)
Various test compilation fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@414 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index dcb25f7..574bb08 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1853,7 +1853,6 @@ namespace
{
// load into registers
char_t* s = ref_s;
- char_t ch = 0;
// parse node contents, starting with exclamation mark
++s;
@@ -1921,7 +1920,7 @@ namespace
SCANFOR(s[0] == ']' && s[1] == ']' && ENDSWITH(s[2], '>'));
CHECK_ERROR(status_bad_cdata, s);
- ENDSEG(); // Zero-terminate this segment.
+ *s++ = 0; // Zero-terminate this segment.
}
POPNODE(); // Pop since this is a standalone.