From 39c08fc1e53437122a6064d81237a499cf7e7dd9 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Tue, 2 Mar 2021 18:01:34 +0300 Subject: [PATCH] api: fix parsing of values after a wildcard --- code/espurna/api.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/espurna/api.cpp b/code/espurna/api.cpp index 57a07710..5e7bd0a7 100644 --- a/code/espurna/api.cpp +++ b/code/espurna/api.cpp @@ -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(