mirror of https://github.com/golang/go.git
parent
f081141856
commit
e66128e63b
|
|
@ -642,7 +642,6 @@ func cgoCheckArg(t *_type, p unsafe.Pointer, indir, top bool, msg string) {
|
|||
cgoCheckArg(f.Typ, add(p, f.Offset), true, top, msg)
|
||||
}
|
||||
case abi.Pointer, abi.UnsafePointer:
|
||||
|
||||
if indir {
|
||||
p = *(*unsafe.Pointer)(p)
|
||||
if p == nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue