1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00
go/src
Dave Cheney f6d43b746a net: fix undetected set and not used error
Fixes an error where the compiler did not spot that the shadowed err
value was set again after being read. That second assignment was lost
as the value was redeclared in an inner scope.

Spotted by Gordon Klass, https://groups.google.com/forum/#!topic/golang-nuts/MdDLbvOjb4o

Change-Id: I28f2da6f98c52afcbb45e17d2b4f36c586598f98
Reviewed-on: https://go-review.googlesource.com/10600
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
2015-06-02 05:35:29 +00:00
..
archive archive/tar: terminate when reading malformed sparse files 2015-05-28 23:54:54 +00:00
bufio
builtin
bytes
cmd cmd/pprof/internal/profile: fix missing error check 2015-06-02 05:25:52 +00:00
compress
container
crypto
database/sql
debug all: build and use go tool compile, go tool link 2015-05-21 17:32:03 +00:00
encoding encoding/gob: fix infinite recursion caused by ignoring recursive type 2015-06-01 18:42:29 +00:00
errors
expvar
flag flag: Fix up a package comment a bit. 2015-05-19 02:18:40 +00:00
fmt fmt: allow for space and plus flags when computing widths 2015-05-11 18:34:19 +00:00
go go/types: fix error message for embedded non-interface types in interfaces 2015-05-28 19:55:06 +00:00
hash
html html/template: prevent panic when escaping actions involving chain nodes 2015-06-01 20:52:04 +00:00
image
index/suffixarray
internal internal/syscall/windows/registry: fix read overrun in GetStringsValue 2015-05-15 03:25:41 +00:00
io io: minor improvements to doc comment on WriteString. 2015-05-29 04:33:15 +00:00
log
math math/big: remove (*Float).Scan, ScanFloat; more robust (*Float).Parse 2015-05-29 17:11:43 +00:00
mime mime: fix names of examples 2015-06-01 22:20:58 +00:00
net net: fix undetected set and not used error 2015-06-02 05:35:29 +00:00
os
path path: fix a typo in documentation of Split 2015-05-31 22:08:38 +00:00
reflect reflect: make PtrTo(FuncOf(...)) not crash 2015-05-16 00:51:05 +00:00
regexp regexp: suggest go doc, not godoc 2015-06-01 20:16:31 +00:00
runtime runtime: document that runtime.GC() blocks until GC is complete 2015-06-01 14:51:12 +00:00
sort
strconv strconv: minor internal comment fix 2015-05-27 22:02:02 +00:00
strings
sync
syscall syscall: don't run fcntl child process test on iOS 2015-05-15 16:41:12 +00:00
testing testing: fix typo 2015-05-12 23:39:00 +00:00
text text/template: fix variadic function call corner case 2015-06-01 22:06:40 +00:00
time time: document that not all Unix time can be represented 2015-05-19 06:19:33 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: clean up stale GOROOT 2015-05-25 20:53:26 +00:00
bootstrap.bash
buildall.bash buildall.bash: exit 1 when make.bash fails 2015-05-17 01:40:33 +00:00
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc