Commit 8fe77013 authored by Russ Cox's avatar Russ Cox

os: work around inlining bug (issue 2678)

TBR=lvd
CC=golang-dev
https://golang.org/cl/5534070
parent 091ef25a
......@@ -55,7 +55,7 @@ type dirInfo struct {
const DevNull = "NUL"
func (file *file) isdir() bool { return file != nil && file.dirinfo != nil }
func (f *file) isdir() bool { return f != nil && f.dirinfo != nil }
func openFile(name string, flag int, perm uint32) (file *File, err error) {
r, e := syscall.Open(name, flag|syscall.O_CLOEXEC, perm)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment