aboutsummaryrefslogtreecommitdiff
path: root/src/util/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/string.h')
-rw-r--r--src/util/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/string.h b/src/util/string.h
index aa4329f2f..83cce3765 100644
--- a/src/util/string.h
+++ b/src/util/string.h
@@ -610,7 +610,7 @@ std::vector<std::basic_string<T> > split(const std::basic_string<T> &s, T delim)
} else {
if (si == delim) {
tokens.push_back(current);
- current = std::basic_string<T>();
+ current.clear();
last_was_escape = false;
} else if (si == '\\') {
last_was_escape = true;