diff --git a/antiphishing/antiphishing.go b/antiphishing/antiphishing.go index ff13e523b0..7cfb889191 100644 --- a/antiphishing/antiphishing.go +++ b/antiphishing/antiphishing.go @@ -235,7 +235,7 @@ func queryPhishingLinks(input []string) (string, error) { return "", err } - badDomains := make([]string, len(bitflowAntifishResponse.Matches)) + badDomains := make([]string, 0, len(bitflowAntifishResponse.Matches)) if bitflowAntifishResponse.Match { for _, match := range bitflowAntifishResponse.Matches { // only flag domains which have a low trust rating, this varies between 0 and 1, 0 means high trust, 1 means no trust.