mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-1229 add an error check
X-SVN-Rev: 5890
This commit is contained in:
parent
b699cb3cdb
commit
8b7793a7ff
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ void ucol_tok_initTokenList(UColTokenParser *src, const UChar *rules, const uint
|
|||
src->lh = 0;
|
||||
src->varTop = NULL;
|
||||
src->tailored = uhash_open(uhash_hashTokens, uhash_compareTokens, status);
|
||||
if(U_FAILURE(*status)) {
|
||||
return;
|
||||
}
|
||||
uhash_setValueDeleter(src->tailored, deleteToken);
|
||||
|
||||
src->opts = (UColOptionSet *)uprv_malloc(sizeof(UColOptionSet));
|
||||
|
|
Loading…
Add table
Reference in a new issue