Skip to content
Snippets Groups Projects
Commit ab956ea5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

trying to fix #146

parent 25a6560e
Branches
Tags
No related merge requests found
...@@ -110,6 +110,7 @@ namespace onelab{ ...@@ -110,6 +110,7 @@ namespace onelab{
static std::string getNextToken(const std::string &msg, static std::string getNextToken(const std::string &msg,
std::string::size_type &first) std::string::size_type &first)
{ {
if(first == std::string::npos) return "";
std::string::size_type last = msg.find_first_of(charSep(), first); std::string::size_type last = msg.find_first_of(charSep(), first);
std::string next = msg.substr(first, last - first); std::string next = msg.substr(first, last - first);
first = (last == std::string::npos) ? last : last + 1; first = (last == std::string::npos) ? last : last + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment