Sfoglia il codice sorgente

Merge pull request #472 from Dmitry-Me/pointerAssertionsStrPairSet

Pointer assertions for substring
Lee Thomason 9 anni fa
parent
commit
0d667f8fef
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;