From 3ceb7039356f09d78e3d0007a59a6ded9fca18fa Mon Sep 17 00:00:00 2001 From: deal Date: Fri, 24 Dec 2021 01:54:39 +0800 Subject: [PATCH] Update pugixml.cpp --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 55e8404..8b4f6a8 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -2409,7 +2409,7 @@ PUGI__NS_BEGIN if (header & header_mask) alloc->deallocate_string(dest); // mark the string as not allocated - dest = source_length == 0 ? NULL : const_cast(source); + dest = source_length == 0 ? NULL : const_cast(source); header &= ~header_mask; // mark dest as shared to avoid reuse document buffer memory