ICU-96 Fixed goofy special case crash

X-SVN-Rev: 4727
This commit is contained in:
Vladimir Weinstein 2001-05-19 02:37:47 +00:00
parent e5d329510d
commit 0eb4c99a72

View file

@ -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;
*/
}
/*