diff --git a/src/jrd/SimilarToMatcher.h b/src/jrd/SimilarToMatcher.h index 6e68fe90b0c..5580f058768 100644 --- a/src/jrd/SimilarToMatcher.h +++ b/src/jrd/SimilarToMatcher.h @@ -1138,8 +1138,13 @@ bool SimilarToMatcher::Evaluator::match() { if (state == 0) { - scopes.push(Scope(start, limit)); - state = 1; + if (start >= limit) + state = 2; + else + { + scopes.push(Scope(start, limit)); + state = 1; + } } Scope* scope;