diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 85638bc..00c9ed1 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -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(source); + dest = source_length == 0 ? nullptr : const_cast(source); header &= ~header_mask; return true;