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 authored and fvacek committed Oct 21, 2024
1 parent 617fe5a commit f6fb5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libshvcore/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ StringViewList utils::split(StringView strv, char delim, char quote, SplitBehavi
ret.push_back(token);
}
}
if(token.end() >= strv.end())
if(token.data() + token.size() >= strv.data() + strv.size())
break;
strv = strv.substr(token.length() + 1);
}
Expand Down

0 comments on commit f6fb5f5

Please sign in to comment.