From 2f24cf602f4410ce67416bfa57075a8d279cfe61 Mon Sep 17 00:00:00 2001 From: dimxy Date: Tue, 9 Apr 2019 12:58:55 +0500 Subject: [PATCH] corr SplitStr --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 163e4aad3..7d0b9cc3d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -406,7 +406,7 @@ void SplitStr(const std::string& strVal, std::vector &outVals) while (std::isspace(ss.peek())) ss.ignore(); - while (!ss.eofbit && !std::isspace(c = ss.get()) && c != ',') + while (!ss.eof() && !std::isspace(c = ss.get()) && c != ',') str += c; if (!str.empty())