Skip to content

Commit

Permalink
core/utils: Fix comparing iterators from different instances
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr committed Oct 21, 2024
1 parent e278d66 commit 3753d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libshvcore/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ StringViewList utils::split(StringView strv, char delim, char quote, SplitBehavi
ret.push_back(token);
}
}
//if(token.end() >= strv.end())
// break;
if(token.data() + token.size() >= strv.data() + strv.size())
break;
strv = strv.substr(token.length() + 1);
}
return ret;
Expand Down

0 comments on commit 3753d85

Please sign in to comment.