diff options
Diffstat (limited to 'src/uscxml/util/String.cpp')
-rw-r--r-- | src/uscxml/util/String.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/uscxml/util/String.cpp b/src/uscxml/util/String.cpp index 95d69e9..7334d73 100644 --- a/src/uscxml/util/String.cpp +++ b/src/uscxml/util/String.cpp @@ -90,7 +90,8 @@ std::list<std::string> tokenize(const std::string &line, const char sep, bool tr i++; // skip multiple occurences of seperator and whitespaces } start = i; - } else if (i + 1 == line.size()) { + } + if (i + 1 == line.size()) { tokens.push_back(line.substr(start, i + 1 - start)); } } @@ -224,4 +225,4 @@ NEXT_DESC: } -}
\ No newline at end of file +} |