From ffdc1a17e2de32dac0f05821efc988990ac27ca7 Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 30 Sep 2021 16:23:10 +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 00c9ed1..950d3ab 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 ? 0 : const_cast(source); header &= ~header_mask; return true;