Browse Source

Merge pull request #472 from Dmitry-Me/pointerAssertionsStrPairSet

Pointer assertions for substring
Lee Thomason 9 năm trước cách đây
mục cha
commit
0d667f8fef
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;