ICU-2039 memory err in test

X-SVN-Rev: 12495
This commit is contained in:
Steven R. Loomis 2003-06-12 20:24:07 +00:00
parent 07cb70634b
commit 2d96aef2ad

View File

@ -21,9 +21,8 @@ static UnicodeString fieldName(UCalendarDateFields f);
static UnicodeString calToStr(const Calendar & cal)
{
UnicodeString out;
UErrorCode status;
UErrorCode status = U_ZERO_ERROR;
int i;
for(i = 0;i<UCAL_FIELD_COUNT;i++) {
out += (UnicodeString("+") + fieldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString(", "));