]> Cypherpunks repositories - gostls13.git/commit
gob: allow Decode(nil) and have it just discard the next value.
authorRob Pike <r@golang.org>
Sun, 13 Feb 2011 02:03:54 +0000 (18:03 -0800)
committerRob Pike <r@golang.org>
Sun, 13 Feb 2011 02:03:54 +0000 (18:03 -0800)
commitea46bda72b6b1e651d6f23a8d0b2704f263f9453
tree37776cfa82d960b38c60b500043708d4cb9f6b92
parentbab5536af6bbf197bbf54ff2c92b4462af1a82c3
gob: allow Decode(nil) and have it just discard the next value.
Fixes #1489.

R=rsc
CC=golang-dev
https://golang.org/cl/4187046
src/pkg/gob/decoder.go
src/pkg/gob/encoder_test.go