]> granicus.if.org Git - icu/commitdiff
ICU-20941 Fix uninitialized values: DerivedComponents' compound0_ and compound1_
authorHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Wed, 24 Feb 2021 19:16:03 +0000 (20:16 +0100)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Thu, 25 Feb 2021 05:15:50 +0000 (21:15 -0800)
icu4c/source/i18n/number_longnames.cpp

index 0ec75ea0cc88380ec32495ad11ee0a27dc47a606..76d57a1b8674e7c366a231c418a3e0884f5a9fa9 100644 (file)
@@ -658,7 +658,7 @@ class DerivedComponents {
     UErrorCode status = U_ZERO_ERROR;
 
     // Holds strings referred to by value0 and value1;
-    bool compound0_, compound1_;
+    bool compound0_ = false, compound1_ = false;
     CharString value0_, value1_;
 };