ICU-900 Fixed some compiler warnings
X-SVN-Rev: 7023
This commit is contained in:
parent
35b20f298a
commit
a51d8517eb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user