ICU-3718 Do faster string copying, and hopefully avoid any uninitialized reads

X-SVN-Rev: 15517
This commit is contained in:
George Rhoten 2004-05-24 23:35:35 +00:00
parent f5b6408857
commit 9925b69c5c

View File

@ -174,7 +174,8 @@ static UBool getOlsonMeta() {
static int32_t findInStringArray(UResourceBundle* array, const UnicodeString& id, UErrorCode &status)
{
UnicodeString copy = id;
UnicodeString copy;
copy.fastCopyFrom(id);
const UChar* buf = copy.getTerminatedBuffer();
const UChar* u = NULL;