ICU-3718 Don't crash when data is not present

X-SVN-Rev: 15501
This commit is contained in:
George Rhoten 2004-05-24 20:28:32 +00:00
parent 5630ab605c
commit 59a80825d0

View File

@ -663,6 +663,10 @@ static void TestStream(void) {
UErrorCode status = U_ZERO_ERROR;
UConverter *defConv;
/* initialize testStreamBuf */
memset(testStreamBuf, '*', sizeof(testStreamBuf));
testStreamBuf[sizeof(testStreamBuf)-1] = 0;
str4.append((UChar32)0x03BC); /* mu */
str4.append((UChar32)0x10001);
str4.append((UChar32)0x10002);