patternMatcher: initialize the indirectVals map
This commit is contained in:
parent
10baa245b2
commit
4439040bc8
|
@ -32,6 +32,7 @@ func NewPatternPatcher() *PatternMatcher {
|
||||||
patternMatcher := PatternMatcher{
|
patternMatcher := PatternMatcher{
|
||||||
blockedPrefixes: critbitgo.NewTrie(),
|
blockedPrefixes: critbitgo.NewTrie(),
|
||||||
blockedSuffixes: critbitgo.NewTrie(),
|
blockedSuffixes: critbitgo.NewTrie(),
|
||||||
|
indirectVals: make(map[string]interface{}),
|
||||||
}
|
}
|
||||||
return &patternMatcher
|
return &patternMatcher
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue