BString::Split(): Fix check

This commit is contained in:
Ingo Weinhold 2013-09-19 20:55:23 +02:00
parent efcb3de14e
commit 1c521f0b31

View File

@ -546,7 +546,7 @@ BString::Split(const char* separator, bool noEmptyStrings,
if (endIndex > index || !noEmptyStrings) { if (endIndex > index || !noEmptyStrings) {
BString toAppend(String() + index, endIndex - index); BString toAppend(String() + index, endIndex - index);
if (toAppend.Length() != endIndex - index if (toAppend.Length() != endIndex - index
|| _list.Add(toAppend)) { || !_list.Add(toAppend)) {
return false; return false;
} }
} }