Update pugixml.cpp

This commit is contained in:
halx99 2021-09-30 16:23:10 +08:00 committed by GitHub
parent bb916d8159
commit ffdc1a17e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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