Skip to content

Commit

Permalink
fix err checking for splice
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Oct 26, 2024
1 parent db9eb80 commit db8bc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splice/splice.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func newSplicePair() (p *Pair, err error) {
}
var errNo syscall.Errno
p.size, errNo = fcntl(uintptr(p.r), F_GETPIPE_SZ, 0)
if err == syscall.EINVAL {
if errNo == syscall.EINVAL {
p.size = DefaultPipeSize
return p, nil
}
Expand Down

0 comments on commit db8bc80

Please sign in to comment.