From 1c521f0b311686a352b2f57aa12bd53dc5dbdced Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 19 Sep 2013 20:55:23 +0200 Subject: [PATCH] BString::Split(): Fix check --- src/kits/support/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/support/String.cpp b/src/kits/support/String.cpp index e29e082464..56b6084e93 100644 --- a/src/kits/support/String.cpp +++ b/src/kits/support/String.cpp @@ -546,7 +546,7 @@ BString::Split(const char* separator, bool noEmptyStrings, if (endIndex > index || !noEmptyStrings) { BString toAppend(String() + index, endIndex - index); if (toAppend.Length() != endIndex - index - || _list.Add(toAppend)) { + || !_list.Add(toAppend)) { return false; } }