summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index f9d4ad6..7063fc3 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1796,7 +1796,10 @@ namespace
inline xml_parse_result make_parse_result(xml_parse_status status, ptrdiff_t offset = 0)
{
- xml_parse_result result = {status, offset, encoding_auto};
+ xml_parse_result result;
+ result.status = status;
+ result.offset = offset;
+
return result;
}
@@ -2276,7 +2279,8 @@ namespace
{
s = parse_question(s, cursor, optmsk, endch);
- if (cursor && (cursor->header & xml_memory_page_type_mask) == node_declaration) goto LOC_ATTRIBUTES;
+ assert(cursor);
+ if ((cursor->header & xml_memory_page_type_mask) == node_declaration) goto LOC_ATTRIBUTES;
}
else if (*s == '!') // '<!...'
{