summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/plan9/syscall_plan9.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/sys/plan9/syscall_plan9.go')
-rw-r--r--vendor/golang.org/x/sys/plan9/syscall_plan9.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/golang.org/x/sys/plan9/syscall_plan9.go b/vendor/golang.org/x/sys/plan9/syscall_plan9.go
index 84e14714..723b1f40 100644
--- a/vendor/golang.org/x/sys/plan9/syscall_plan9.go
+++ b/vendor/golang.org/x/sys/plan9/syscall_plan9.go
@@ -132,8 +132,10 @@ func Pipe(p []int) (err error) {
}
var pp [2]int32
err = pipe(&pp)
- p[0] = int(pp[0])
- p[1] = int(pp[1])
+ if err == nil {
+ p[0] = int(pp[0])
+ p[1] = int(pp[1])
+ }
return
}