1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:06:09 -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 bytes, strings: add LastIndexByte 2015-04-30 07:13:18 +00:00
cmd cmd/pprof/internal/profile: fix missing error check 2015-06-02 05:25:52 +00:00
compress compress/flate: simplify the TestDegenerateHuffmanCoding data. 2015-04-17 04:31:48 +00:00
container
crypto crypto/x509: be strict about trailing data. 2015-04-30 03:49:36 +00:00
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 hash/crc32: move reverse representation docs to an example 2015-05-04 00:19:22 +00:00
html html/template: prevent panic when escaping actions involving chain nodes 2015-06-01 20:52:04 +00:00
image image/gif: allow encoding a single-frame image whose top-left corner 2015-05-06 01:00:58 +00:00
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 log/syslog: make the BUG notes visible on golang.org 2015-04-22 21:09:53 +00:00
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 os: eradicate smallpox after test 2015-05-06 17:38:57 +00:00
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 strings: use LastIndexByte in LastIndex 2015-04-30 08:33:29 +00:00
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 iostest.bash: run detect.go as part of iostest 2015-04-16 12:59:54 +00:00
make.bash
make.bat
Make.dist
make.rc
nacltest.bash nacltest.bash: remove syscall/fstest_nacl.go after test 2015-05-02 02:48:32 +00:00
race.bash
race.bat
run.bash build: correct quoting of args in run.bash 2015-05-09 04:23:47 +00:00
run.bat
run.rc