Skip to content

Commit

Permalink
last entry should be declaration **or comment**
Browse files Browse the repository at this point in the history
  • Loading branch information
ponapalt committed Sep 29, 2022
1 parent d497ca1 commit 70e16a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyxml2.cpp
Expand Up @@ -1120,7 +1120,7 @@ char* XMLNode::ParseDeep( char* p, StrPair* parentEndTag, int* curLineNumPtr )
FirstChild() &&
FirstChild()->ToDeclaration() &&
LastChild() &&
LastChild()->ToDeclaration();
( LastChild()->ToDeclaration() || LastChild()->ToComment() ) ; //last entry should be declaration or comment.
}
else {
wellLocated = true;
Expand Down

0 comments on commit 70e16a5

Please sign in to comment.