From 9708885e5e152a2ecf5fbf472818c16d0d3c3cf9 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Wed, 18 Apr 2012 11:39:42 -0700 Subject: [PATCH] minor cleanup to the parsing loop --- tinyxml2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index fbeca4e..67bf205 100644 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1169,12 +1169,11 @@ char* XMLElement::ParseAttributes( char* p ) // 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) == '>' ) {