From 2238c004aa8a88ef96c538597fbceb05ba7992c2 Mon Sep 17 00:00:00 2001 From: "Mario J. Rugiero" Date: Sat, 20 Dec 2014 00:56:42 -0300 Subject: Reduce the scope of the variable err in stringTokensBetween. --- src/FbTk/StringUtil.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh index b3908d8..2f7c6fc 100644 --- a/src/FbTk/StringUtil.hh +++ b/src/FbTk/StringUtil.hh @@ -98,10 +98,10 @@ static void stringTokensBetween(Container &container, const std::string &in, const char *ok_chars = " \t\n", bool allow_nesting = true) { std::string token; - int err = 0, pos = 0; + int pos = 0; while (true) { - err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars, + int err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars, allow_nesting); if (err <= 0) break; -- cgit v0.11.2