diff --git a/icu4c/source/test/cintltst/udatatst.c b/icu4c/source/test/cintltst/udatatst.c index 336d97ef3f8..2a5b7aef955 100644 --- a/icu4c/source/test/cintltst/udatatst.c +++ b/icu4c/source/test/cintltst/udatatst.c @@ -1574,7 +1574,7 @@ TestSwapData() { UDataMemory *pData; uint8_t *buffer; const char *pkg, *nm, *testPath; - UErrorCode errorCode; + UErrorCode errorCode = U_ZERO_ERROR; int32_t i; buffer=(uint8_t *)uprv_malloc(2*SWAP_BUFFER_SIZE);