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; }