This commit is contained in:
halx99 2021-12-23 16:15:30 +08:00
parent b025069fbe
commit 9129d7900c

View File

@ -2369,7 +2369,7 @@ PUGI__NS_BEGIN
if (header & header_mask) alloc->deallocate_string(dest); if (header & header_mask) alloc->deallocate_string(dest);
// mark the string as not allocated // mark the string as not allocated
dest = source_length == 0 ? nullptr : const_cast<String>(source); dest = source_length == 0 ? NULL : const_cast<String>(source);
header &= ~header_mask; header &= ~header_mask;
return true; return true;