fix immutable issue (#14643)

Fixes #14568

Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
Wang Yan 2021-04-14 13:25:19 +08:00 committed by GitHub
parent c67a5a6145
commit b39bb0db63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ func (rm *Matcher) Match(pid int64, c iselector.Candidate) (bool, error) {
// match tag according to the tag selectors // match tag according to the tag selectors
var tagCandidates []*iselector.Candidate var tagCandidates []*iselector.Candidate
tagSelectors := r.TagSelectors tagSelectors := r.TagSelectors
if len(tagSelectors) < 0 { if len(tagSelectors) < 1 {
continue continue
} }
tagSelector := r.TagSelectors[0] tagSelector := r.TagSelectors[0]