diff options
Diffstat (limited to 'misc/cgo/stdio/file.go')
-rw-r--r-- | misc/cgo/stdio/file.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/cgo/stdio/file.go b/misc/cgo/stdio/file.go index c8493a0e3..7d1f22280 100644 --- a/misc/cgo/stdio/file.go +++ b/misc/cgo/stdio/file.go @@ -35,8 +35,8 @@ func (f *File) WriteString(s string) { */ func Puts(s string) { - p := C.CString(s); - C.puts(p); - C.free(unsafe.Pointer(p)); - C.fflushstdout(); + p := C.CString(s) + C.puts(p) + C.free(unsafe.Pointer(p)) + C.fflushstdout() } |