From 7170463d241615237c25819cb04607917e11bc35 Mon Sep 17 00:00:00 2001 From: Zhaohe Date: Fri, 9 Dec 2022 11:21:23 +0800 Subject: [PATCH] fix some compile error --- core/spdlog/include/spdlog/fmt/bundled/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/spdlog/include/spdlog/fmt/bundled/format.h b/core/spdlog/include/spdlog/fmt/bundled/format.h index 7c607db..c758273 100644 --- a/core/spdlog/include/spdlog/fmt/bundled/format.h +++ b/core/spdlog/include/spdlog/fmt/bundled/format.h @@ -1238,7 +1238,7 @@ template format_decimal_result { // Buffer is large enough to hold all digits (digits10 + 1). - Char buffer[digits10() + 1]; + Char buffer[digits10() + 1]={}; auto end = format_decimal(buffer, value, size).end; return {out, detail::copy_str_noinline(buffer, end, out)}; }