Update pugixml.cpp
This commit is contained in:
parent
bb916d8159
commit
ffdc1a17e2
@ -2364,7 +2364,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<char_t*>(source);
|
dest = source_length == 0 ? 0 : const_cast<char_t*>(source);
|
||||||
header &= ~header_mask;
|
header &= ~header_mask;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user