Browse Source

api: fix parsing of values after a wildcard

dev
Maxim Prokhorov 3 years ago
parent
commit
39c08fc1e5
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      code/espurna/api.cpp

+ 2
- 4
code/espurna/api.cpp View File

@ -126,11 +126,10 @@ bool PathParts::match(const PathParts& path) const {
}
auto lhs = begin();
auto rhs = path.begin();
auto lhs_end = end();
auto rhs_end = path.end();
auto rhs = path.begin();
auto rhs_end = path.end();
loop:
if (lhs == lhs_end) {
goto check_end;
@ -141,7 +140,6 @@ loop:
if (
(rhs != rhs_end)
&& ((*rhs).type == PathPart::Type::Value)
&& ((*rhs).offset == (*lhs).offset)
&& ((*rhs).length == (*lhs).length)
) {
if (0 == std::memcmp(


Loading…
Cancel
Save