aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2014-12-20 03:56:42 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-05-01 08:46:21 (GMT)
commit2238c004aa8a88ef96c538597fbceb05ba7992c2 (patch)
treeb1fa6995ef30354e005827303da4e1bbf19dfca1
parent2275e1e6e4571a902138afb60ed0db6396297c1a (diff)
downloadfluxbox-2238c004aa8a88ef96c538597fbceb05ba7992c2.zip
fluxbox-2238c004aa8a88ef96c538597fbceb05ba7992c2.tar.bz2
Reduce the scope of the variable err in stringTokensBetween.
-rw-r--r--src/FbTk/StringUtil.hh4
1 files 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,
98 const char *ok_chars = " \t\n", bool allow_nesting = true) { 98 const char *ok_chars = " \t\n", bool allow_nesting = true) {
99 99
100 std::string token; 100 std::string token;
101 int err = 0, pos = 0; 101 int pos = 0;
102 102
103 while (true) { 103 while (true) {
104 err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars, 104 int err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars,
105 allow_nesting); 105 allow_nesting);
106 if (err <= 0) 106 if (err <= 0)
107 break; 107 break;