diff --git a/fmt/printf.h b/fmt/printf.h index 038b9f26..06c999a7 100644 --- a/fmt/printf.h +++ b/fmt/printf.h @@ -439,6 +439,8 @@ void PrintfFormatter::format(BasicCStringRef format_str) { } else if (*s == '*') { ++s; spec.precision_ = internal::PrecisionHandler().visit(get_arg(s)); + } else { + spec.precision_ = 0; } }