]> granicus.if.org Git - icu/commitdiff
ICU-9954 Fix coverity warning.
authorAndy Heninger <andy.heninger@gmail.com>
Wed, 20 Sep 2017 22:58:39 +0000 (22:58 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Wed, 20 Sep 2017 22:58:39 +0000 (22:58 +0000)
X-SVN-Rev: 40436

icu4c/source/common/rbbi.cpp

index 2c5e0e7092b2dd95c0fac80921b05638646fc3a9..54b289e24d1e0affac7f32ec140046c1b57b581d 100644 (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;
     }