]> Cypherpunks repositories - gostls13.git/commit
reflect: fix Zero() implementation - not every type has a
authorKeith Randall <khr@golang.org>
Tue, 3 Dec 2013 00:54:29 +0000 (16:54 -0800)
committerKeith Randall <khr@golang.org>
Tue, 3 Dec 2013 00:54:29 +0000 (16:54 -0800)
commite7d899cba5613948deee6dce91ab21f6eaa6404f
treedf70f0084081721e2dac2f9102a07f96874e8770
parent85138da832f8740bee9241e80acb291a4954a10a
reflect: fix Zero() implementation - not every type has a
zero object allocated, so we still need to allocate a new
zero area every time.

Fixes #6876.

R=golang-dev
CC=golang-dev
https://golang.org/cl/36320043
src/pkg/reflect/value.go