commit | 9708885e5e152a2ecf5fbf472818c16d0d3c3cf9 | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Wed Apr 18 11:39:42 2012 -0700 |
committer | Lee Thomason <leethomason@gmail.com> | Wed Apr 18 11:39:42 2012 -0700 |
tree | 60a6986de546e94d16558a5b9874326839645e44 | |
parent | 8713775d9b0aa8c02e37930a02f131229c2242c6 [diff] [blame] |
minor cleanup to the parsing loop
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index fbeca4e..67bf205 100644 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1169,12 +1169,11 @@ // now, may reconsider in the future. if ( prevAttribute ) { prevAttribute->next = attrib; - prevAttribute = attrib; } else { rootAttribute = attrib; - prevAttribute = rootAttribute; } + prevAttribute = attrib; } // end of the tag else if ( *p == '/' && *(p+1) == '>' ) {