We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f30e3a commit f97f87fCopy full SHA for f97f87f
src/xml_parsing.cpp
@@ -321,12 +321,13 @@ void VerifyXML(const std::string& xml_text,
321
}
322
else if (StrEqual(name, "SubTree"))
323
{
324
- for (auto child = node->FirstChildElement(); child != nullptr;
325
- child = child->NextSiblingElement())
+ auto child = node->FirstChildElement();
+
326
+ if (child)
327
- if( StrEqual(child->Name(), "remap") )
328
+ if (StrEqual(child->Name(), "remap"))
329
- ThrowError(node->GetLineNum(), "<remap> was deprecated");
330
+ ThrowError(node->GetLineNum(), "<remap> was deprecated");
331
332
else{
333
ThrowError(node->GetLineNum(), "<SubTree> should not have any child");
0 commit comments