Commit 9fe1e9f4 authored by Samir Halilcevic's avatar Samir Halilcevic

Fix iterator advance

parent 40ed1153
......@@ -156,10 +156,9 @@ find_by_long_name(const config_option& x,
// Remove leading '=' and return the value.
str.remove_prefix(1);
return {first, str};
} else if (str.empty() && (first + 1) != last) {
} else if (auto val = first + 1; str.empty() && val != last) {
// Get the next argument the value
++first;
return {first, std::string_view{*first}};
return {first, std::string_view{*val}};
} else {
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment