aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/binary/example_test.go
diff options
context:
space:
mode:
authorHiroshi Ioka <hirochachacha@gmail.com>2017-07-11 18:57:54 +0900
committerIan Lance Taylor <iant@golang.org>2017-08-11 18:51:24 +0000
commit51ba2bb81923298f08b8ec6d50d0c579b4b63ef3 (patch)
tree92c408828ce1c146e565533e55a11f766dae43ba /src/encoding/binary/example_test.go
parent57bf6aca711a53aa7fea877b98896cd0445c6ad0 (diff)
downloadgo-51ba2bb81923298f08b8ec6d50d0c579b4b63ef3.tar.xz
runtime/cgo: make code robust
According to http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_key_create.html, pthread_key_create return an error number which is greater than or equal to 0. I don't know the scenario that pthread_setspecific would fail, but also don't know the future. Add some error handlings just in case. Change-Id: I0774b79ef658d67e300f4a9aab1f2e3879acc7ee Reviewed-on: https://go-review.googlesource.com/54811 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/binary/example_test.go')
0 files changed, 0 insertions, 0 deletions