Exit loop for unterminated { } pair

This commit is contained in:
Jim Ramsay 2009-04-06 17:25:01 -04:00
parent ba5d30f4ce
commit a56e409b1f

View file

@ -84,7 +84,7 @@ static void stringTokensBetween(Container &container, const std::string &in,
while (true) { while (true) {
err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars, err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars,
allow_nesting); allow_nesting);
if (err == 0) if (err <= 0)
break; break;
container.push_back(token); container.push_back(token);
pos += err; pos += err;