summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2022-12-29 18:35:44 -0800
committerAndreas Kling <kling@serenityos.org>2023-01-16 09:45:46 +0100
commitbffc29ae340f4fc775e3639c9aa4cff65c5c4a4c (patch)
tree7cd769ac57ae5f264fd265965299f39c3d5c95d3
parentbfa890251cb0bad696c4c204349fdf8a42dc213f (diff)
downloadserenity-bffc29ae340f4fc775e3639c9aa4cff65c5c4a4c.zip
LibJS: Fix uninitialized member variable in DurationFormat
Reported-by: PVS Studio
-rw-r--r--Userland/Libraries/LibJS/Runtime/Intl/DurationFormat.h2
1 files changed, 1 insertions, 1 deletions
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]]