]> granicus.if.org Git - icu/commitdiff
ICU-23327 Fix uninitialized error code in test.
authorAndy Heninger <andy.heninger@gmail.com>
Thu, 28 Sep 2017 21:19:47 +0000 (21:19 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Thu, 28 Sep 2017 21:19:47 +0000 (21:19 +0000)
X-SVN-Rev: 40502

icu4c/source/test/intltest/numfmtst.cpp

index f10e57c0630ced53951d61bafa1670e22e7786b8..f6351232acba0e6a8dffb927fa4efef5cefda9c1 100644 (file)
@@ -8787,7 +8787,7 @@ void NumberFormatTest::Test11649_toPatternWithMultiCurrency() {
 }
 
 void NumberFormatTest::Test13327_numberingSystemBufferOverflow() {
-    UErrorCode status;
+    UErrorCode status = U_ZERO_ERROR;
     for (int runId = 0; runId < 2; runId++) {
         // Construct a locale string with a very long "numbers" value.
         // The first time, make the value length exactly equal to ULOC_KEYWORDS_CAPACITY.