mirror of
https://github.com/golang/go
synced 2024-11-18 15:44:41 -07:00
cmd/dist: fix build
The Unix and Plan 9 readfile call breset(b) but Windows was not, leaving dregs in the buffer. TBR=golang-dev CC=golang-dev https://golang.org/cl/7229069
This commit is contained in:
parent
7fc64a2a1d
commit
25d1fc9389
1
src/cmd/dist/windows.c
vendored
1
src/cmd/dist/windows.c
vendored
@ -530,6 +530,7 @@ readfile(Buf *b, char *file)
|
||||
HANDLE h;
|
||||
Rune *r;
|
||||
|
||||
breset(b);
|
||||
if(vflag > 2)
|
||||
errprintf("read %s\n", file);
|
||||
torune(&r, file);
|
||||
|
Loading…
Reference in New Issue
Block a user