mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-20593 Genrb: Remove keys if bundle is empty after filtering.
This commit is contained in:
parent
f1d4aa72d1
commit
e27c075b92
1 changed files with 1 additions and 1 deletions
|
@ -1371,7 +1371,7 @@ SRBRoot::compactKeys(UErrorCode &errorCode) {
|
|||
}
|
||||
|
||||
int32_t keysCount = fUsePoolBundle->fKeysCount + fKeysCount;
|
||||
if (U_FAILURE(errorCode) || fKeysCount == 0 || fKeyMap != NULL) {
|
||||
if (U_FAILURE(errorCode) || fKeyMap != NULL) {
|
||||
return;
|
||||
}
|
||||
map = (KeyMapEntry *)uprv_malloc(keysCount * sizeof(KeyMapEntry));
|
||||
|
|
Loading…
Add table
Reference in a new issue