diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 2db585f..b73f30e 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -2369,7 +2369,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 ? NULL : const_cast(source); header &= ~header_mask; return true;