fix: zero-initialization for a unit symbol buffer

This commit is contained in:
Mateusz Pusz committed 2024-03-19 10:37:47 +09:00
1 parent a62fdd2331
commit 0644790198
1 file changed
+1 -1
+1 -1
View File
@@ -818,7 +818,7 @@ namespace detail {
template<typename CharT, std::size_t N, unit_symbol_formatting fmt, Unit U>
[[nodiscard]] consteval std::array<CharT, N> get_symbol_buffer(U)
{
std::array<CharT, N> buffer;
std::array<CharT, N> buffer{};
unit_symbol_to<CharT>(buffer.begin(), U{}, fmt);
return buffer;
}