From 064479019864a3b5bff177eddeee29f94890db77 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 19 Mar 2024 10:37:47 +0900 Subject: [PATCH] fix: zero-initialization for a unit symbol buffer --- src/core/include/mp-units/unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/unit.h b/src/core/include/mp-units/unit.h index 9de85fb03..46ec19ebf 100644 --- a/src/core/include/mp-units/unit.h +++ b/src/core/include/mp-units/unit.h @@ -818,7 +818,7 @@ namespace detail { template [[nodiscard]] consteval std::array get_symbol_buffer(U) { - std::array buffer; + std::array buffer{}; unit_symbol_to(buffer.begin(), U{}, fmt); return buffer; }