From 135a9111f2f0cc3abbd85a2d7a8d8f294603ba9f Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 18 Sep 2024 18:28:47 -0700 Subject: [PATCH] Initialize errors to nullptr in MessageFormatter --- icu4c/source/i18n/unicode/messageformat2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/i18n/unicode/messageformat2.h b/icu4c/source/i18n/unicode/messageformat2.h index d23ac8409d81..e77c61d6d36e 100644 --- a/icu4c/source/i18n/unicode/messageformat2.h +++ b/icu4c/source/i18n/unicode/messageformat2.h @@ -378,7 +378,7 @@ namespace message2 { // Must be a raw pointer to avoid including the internal header file // defining StaticErrors // Owned by `this` - StaticErrors* errors; + StaticErrors* errors = nullptr; }; // class MessageFormatter