ICU-9954 Fix coverity warning.

X-SVN-Rev: 40436
This commit is contained in:
Andy Heninger 2017-09-20 22:58:39 +00:00
parent 3e17a0d8c3
commit cb1f0a68f4

View File

@ -792,7 +792,7 @@ int32_t RuleBasedBreakIterator::handleNext() {
UTEXT_SETNATIVEINDEX(fText, initialPosition);
result = initialPosition;
c = UTEXT_NEXT32(fText);
if (fData == NULL || c==U_SENTINEL) {
if (c==U_SENTINEL) {
fDone = TRUE;
return UBRK_DONE;
}