all repos — fluxbox @ 2238c004aa8a88ef96c538597fbceb05ba7992c2

custom fork of the fluxbox windowmanager

Reduce the scope of the variable err in stringTokensBetween.
Mario J. Rugiero mrugiero@gmail.com
commit

2238c004aa8a88ef96c538597fbceb05ba7992c2

parent

2275e1e6e4571a902138afb60ed0db6396297c1a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/FbTk/StringUtil.hhsrc/FbTk/StringUtil.hh

@@ -98,10 +98,10 @@ std::string &rest, char first, char last,

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;