aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/crash_cgo_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/crash_cgo_test.go')
-rw-r--r--src/runtime/crash_cgo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go
index 304f1a7554..8a7b3236ed 100644
--- a/src/runtime/crash_cgo_test.go
+++ b/src/runtime/crash_cgo_test.go
@@ -598,7 +598,7 @@ func TestBigStackCallbackCgo(t *testing.T) {
}
func nextTrace(lines []string) ([]string, []string) {
- var trace []string
+ trace := make([]string, 0, len(lines))
for n, line := range lines {
if strings.HasPrefix(line, "---") {
return trace, lines[n+1:]