diff options
Diffstat (limited to 'src/internal/profile/profile.go')
| -rw-r--r-- | src/internal/profile/profile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/profile/profile.go b/src/internal/profile/profile.go index afd1dd72ee..c8529d916d 100644 --- a/src/internal/profile/profile.go +++ b/src/internal/profile/profile.go @@ -507,7 +507,7 @@ type Demangler func(name []string) (map[string]string, error) // it will silently preserve the original names in case of any errors. func (p *Profile) Demangle(d Demangler) error { // Collect names to demangle. - var names []string + names := make([]string, 0, len(p.Function)) for _, fn := range p.Function { names = append(names, fn.SystemName) } |
