diff --git a/include/fmt/format.h b/include/fmt/format.h index 4678d6a8..4093e37d 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2124,7 +2124,7 @@ auto write_int(OutputIt out, UInt value, unsigned prefix, const format_specs& specs, const digit_grouping& grouping) -> OutputIt { static_assert(std::is_same, UInt>::value, ""); - int num_digits; + int num_digits = 0; char digits[40]; switch (specs.type) {