mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
tests: remove two misuses of nil pointers
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12858044
This commit is contained in:
parent
ff86d222be
commit
08fdf00906
2 changed files with 5 additions and 2 deletions
|
|
@ -136,7 +136,9 @@ func TestGcRescan(t *testing.T) {
|
|||
for i := 0; i < 10; i++ {
|
||||
p := &Y{}
|
||||
p.c = make(chan error)
|
||||
p.nextx = &head.X
|
||||
if head != nil {
|
||||
p.nextx = &head.X
|
||||
}
|
||||
p.nexty = head
|
||||
p.p = new(int)
|
||||
*p.p = 42
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue