Exit loop for unterminated { } pair
This commit is contained in:
parent
ba5d30f4ce
commit
a56e409b1f
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ static void stringTokensBetween(Container &container, const std::string &in,
|
|||
while (true) {
|
||||
err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars,
|
||||
allow_nesting);
|
||||
if (err == 0)
|
||||
if (err <= 0)
|
||||
break;
|
||||
container.push_back(token);
|
||||
pos += err;
|
||||
|
|
Loading…
Reference in a new issue