Explorar el Código

Merge pull request #472 from Dmitry-Me/pointerAssertionsStrPairSet

Pointer assertions for substring
Lee Thomason hace 9 años
padre
commit
0d667f8fef
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      tinyxml2.h

+ 2 - 0
tinyxml2.h

@@ -139,6 +139,8 @@ public:
     ~StrPair();
 
     void Set( char* start, char* end, int flags ) {
+        TIXMLASSERT( start );
+        TIXMLASSERT( end );
         Reset();
         _start  = start;
         _end    = end;