From: Rob Pike Date: Tue, 20 Aug 2013 04:45:46 +0000 (+1000) Subject: os: fix windows build X-Git-Tag: go1.2rc2~481 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=94b42fb14a0ceda1763f842e52c55020e96705ad;p=gostls13.git os: fix windows build The os windows source uses file as the receiver, not f. TBR=golang-dev@googlegroups.com R=adg CC=golang-dev https://golang.org/cl/12922044 --- diff --git a/src/pkg/os/file_windows.go b/src/pkg/os/file_windows.go index f6e53d4ff0..fab7de3428 100644 --- a/src/pkg/os/file_windows.go +++ b/src/pkg/os/file_windows.go @@ -153,7 +153,7 @@ func OpenFile(name string, flag int, perm FileMode) (file *File, err error) { // Close closes the File, rendering it unusable for I/O. // It returns an error, if any. func (file *File) Close() error { - if f == nil { + if file == nil { return ErrInvalid } return file.file.close()