Move variable declaration closer to where it's needed
diff --git a/tinyxml2.h b/tinyxml2.h
index 35da4d9..b88e2d0 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -562,10 +562,10 @@
     }

 

     inline static bool StringEqual( const char* p, const char* q, int nChar=INT_MAX )  {

-        int n = 0;

         if ( p == q ) {

             return true;

         }

+        int n = 0;

         while( *p && *q && *p == *q && n<nChar ) {

             ++p;

             ++q;