From bffc29ae340f4fc775e3639c9aa4cff65c5c4a4c Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Thu, 29 Dec 2022 18:35:44 -0800 Subject: [PATCH] LibJS: Fix uninitialized member variable in DurationFormat Reported-by: PVS Studio --- Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.h b/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.h index e3da094932..8077bd8c89 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.h +++ b/Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.h @@ -163,7 +163,7 @@ private: DeprecatedString m_locale; // [[Locale]] DeprecatedString m_data_locale; // [[DataLocale]] DeprecatedString m_numbering_system; // [[NumberingSystem]] - Style m_style; // [[Style]] + Style m_style { Style::Long }; // [[Style]] ValueStyle m_years_style { ValueStyle::Long }; // [[YearsStyle]] Display m_years_display { Display::Auto }; // [[YearsDisplay]] ValueStyle m_months_style { ValueStyle::Long }; // [[MonthsStyle]]