]> granicus.if.org Git - icu/commitdiff
ICU-9981 Initialize memory that was causing erratic results.
authorAndy Heninger <andy.heninger@gmail.com>
Mon, 25 Feb 2013 23:56:37 +0000 (23:56 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Mon, 25 Feb 2013 23:56:37 +0000 (23:56 +0000)
X-SVN-Rev: 33329

icu4c/source/i18n/decimfmt.cpp

index b8dd0c5c18d0fe6fe6d35668e9fe3eec817b4e28..de6e2ec3e222bb62c3e47d4cd4bb42b5685e150d 100644 (file)
@@ -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;