diff options
| -rw-r--r-- | src/common/string_util.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 2099eebb8..6737655a5 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp | |||
| @@ -162,8 +162,9 @@ void SplitString(const std::string& str, const char delim, std::vector<std::stri | |||
| 162 | std::istringstream iss(str); | 162 | std::istringstream iss(str); |
| 163 | output.resize(1); | 163 | output.resize(1); |
| 164 | 164 | ||
| 165 | while (std::getline(iss, *output.rbegin(), delim)) | 165 | while (std::getline(iss, *output.rbegin(), delim)) { |
| 166 | output.push_back(""); | 166 | output.emplace_back(); |
| 167 | } | ||
| 167 | 168 | ||
| 168 | output.pop_back(); | 169 | output.pop_back(); |
| 169 | } | 170 | } |