diff --git a/include/fmt/format.h b/include/fmt/format.h index 7c607dbd..b2dbad04 100644 --- a/include/fmt/format.h +++ b/include/fmt/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)}; }