From 6a16eb759a315397d94460a3d6bb6bc3ea227bdc Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Mon, 25 Feb 2013 23:56:37 +0000 Subject: [PATCH] ICU-9981 Initialize memory that was causing erratic results. X-SVN-Rev: 33329 --- icu4c/source/i18n/decimfmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/i18n/decimfmt.cpp b/icu4c/source/i18n/decimfmt.cpp index b8dd0c5c18d..de6e2ec3e22 100644 --- a/icu4c/source/i18n/decimfmt.cpp +++ b/icu4c/source/i18n/decimfmt.cpp @@ -1919,7 +1919,7 @@ CurrencyAmount* DecimalFormat::parseCurrency(const UnicodeString& text, ParsePosition& pos) const { Formattable parseResult; int32_t start = pos.getIndex(); - UChar curbuf[4]; + UChar curbuf[4] = {}; parse(text, parseResult, pos, curbuf); if (pos.getIndex() != start) { UErrorCode ec = U_ZERO_ERROR; -- 2.40.0