ICU-900 Fixed some compiler warnings

X-SVN-Rev: 7023
This commit is contained in:
George Rhoten 2001-11-20 18:03:30 +00:00
parent 35b20f298a
commit a51d8517eb

View File

@ -671,6 +671,9 @@ UnicodeMatcher** RuleHalf::createSegments(UErrorCode& status) const {
return NULL;
}
UnicodeMatcher** result = new UnicodeMatcher*[segments.size()];
if (result == NULL) {
status = U_MEMORY_ALLOCATION_ERROR;
}
return (UnicodeMatcher**) segments.toArray((void**) result);
}