diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-08 15:57:31 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-08 16:05:11 +1100 |
commit | 4a1d23dc27f61e936fb3b582f02e2bba473c3b19 (patch) | |
tree | b6db7e8b5d743476d0e2f0686da132e16a1cfb17 /vendor/golang.org/x/sys/unix/syscall_freebsd.go | |
parent | 7539929703d76b4228a034ca7524293744839c3d (diff) |
bump gocui
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_freebsd.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_freebsd.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go index 18c392cf3..2f650ae66 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go @@ -110,8 +110,10 @@ func Pipe2(p []int, flags int) error { } var pp [2]_C_int err := pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } return err } |