diff options
Diffstat (limited to 'src/runtime/pprof/runtime_test.go')
| -rw-r--r-- | src/runtime/pprof/runtime_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/runtime/pprof/runtime_test.go b/src/runtime/pprof/runtime_test.go index e77c7f2bc9..353ed8a3f1 100644 --- a/src/runtime/pprof/runtime_test.go +++ b/src/runtime/pprof/runtime_test.go @@ -92,5 +92,9 @@ func getProfLabel() map[string]string { if l == nil { return map[string]string{} } - return *l + m := make(map[string]string, len(l.list)) + for _, lbl := range l.list { + m[lbl.key] = lbl.value + } + return m } |
