Bugfix: logic in string join function
point is, a non empty iterator may sill yield an empty string
This commit is contained in:
parent
fcc2bc1e60
commit
1262ac997f
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue