diff --git a/src/jrd/SimilarToMatcher.h b/src/jrd/SimilarToMatcher.h index 416d92b0b6..c726ee97e3 100644 --- a/src/jrd/SimilarToMatcher.h +++ b/src/jrd/SimilarToMatcher.h @@ -1087,7 +1087,9 @@ bool SimilarToMatcher::Evaluator::match() case opRepeat: fb_assert(state == 1 || state == 2); - if (state == 2) + if (state == 1) + scope->j = 0; + else if (state == 2) { if (scope->j < node->len) {