diff --git a/icu4c/source/i18n/reldtfmt.cpp b/icu4c/source/i18n/reldtfmt.cpp index 2915a27213..a4aac385f3 100644 --- a/icu4c/source/i18n/reldtfmt.cpp +++ b/icu4c/source/i18n/reldtfmt.cpp @@ -124,7 +124,7 @@ UnicodeString& RelativeDateFormat::format( Calendar& cal, int dayDiff = dayDifference(cal, status); // look up string - int32_t len; + int32_t len = 0; const UChar *theString = getStringForDay(dayDiff, len, status); if(U_SUCCESS(status) && (theString!=NULL)) { // found a relative string