mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-96 Fixed goofy special case crash
X-SVN-Rev: 4727
This commit is contained in:
parent
e5d329510d
commit
0eb4c99a72
1 changed files with 2 additions and 6 deletions
|
@ -740,7 +740,8 @@ uint32_t ucol_uprv_tok_assembleTokenList(UColTokenParser *src, UErrorCode *statu
|
|||
accordingly in the headers.
|
||||
*/
|
||||
|
||||
if(lastStrength == UCOL_TOK_RESET) {
|
||||
if(lastStrength == UCOL_TOK_RESET
|
||||
|| sourceToken->listHeader->first[sourceToken->polarity] == 0) {
|
||||
/* If LAST is a reset
|
||||
insert sourceToken in the list. */
|
||||
|
||||
|
@ -768,11 +769,6 @@ uint32_t ucol_uprv_tok_assembleTokenList(UColTokenParser *src, UErrorCode *statu
|
|||
sourceToken->next = lastToken->next;
|
||||
lastToken->next = sourceToken;
|
||||
}
|
||||
/*
|
||||
sourceToken->listHeader->first[sourceToken->polarity]->previous = sourceToken;
|
||||
sourceToken->next = sourceToken->listHeader->first[sourceToken->polarity];
|
||||
sourceToken->listHeader->first[sourceToken->polarity] = sourceToken;
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue