From 6fbb5c06e3b94a9c0e6ec60877984769a89e5dc0 Mon Sep 17 00:00:00 2001 From: Matthew Helyar <62142581+matthewhelyar@users.noreply.github.com> Date: Sat, 18 Nov 2023 21:58:01 +0000 Subject: [PATCH] attempt to resolve CI failures --- src/pugixml.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index ac2a21a..8c1362d 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -4721,7 +4721,11 @@ PUGI_IMPL_NS_BEGIN template PUGI_IMPL_FN bool set_value_integer(String& dest, Header& header, uintptr_t header_mask, U value, bool negative) { - char_t buf[64]{}; + #ifdef PUGIXML_WCHAR_MODE + char_t buf[64] = L""; + #else + char_t buf[64] = ""; + #endif char_t* end = buf + sizeof(buf) / sizeof(buf[0]); char_t* begin = integer_to_string(buf, end, value, negative);