Bugfix: logic in string join function

point is, a non empty iterator may sill yield an empty string
This commit is contained in:
Fischlurch 2016-03-04 23:16:34 +01:00
parent fcc2bc1e60
commit 1262ac997f

View file

@ -200,7 +200,7 @@ namespace util {
// chop off last delimiter
size_t len = buffer.str().length();
ASSERT (len > delim.length());
ASSERT (len >= delim.length());
return buffer.str().substr(0, len - delim.length());
}