summaryrefslogtreecommitdiffhomepage
path: root/pkg/state/decode.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-08-20 22:43:35 +0000
committergVisor bot <gvisor-bot@google.com>2020-08-20 22:43:35 +0000
commitf8ba1b4e98ba4aa36221be3115885cef800015ab (patch)
treeff0c788c2b690073fb154db8e9bbf182a680513b /pkg/state/decode.go
parent233e1b775fd3188da44f8cbf8449350f21ad7f91 (diff)
parentdf4822709992c971af0f9b339d915f6e629c0225 (diff)
Merge release-20200810.0-76-gdf4822709 (automated)
Diffstat (limited to 'pkg/state/decode.go')
-rw-r--r--pkg/state/decode.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/state/decode.go b/pkg/state/decode.go
index c9971cdf6..89467ca8e 100644
--- a/pkg/state/decode.go
+++ b/pkg/state/decode.go
@@ -584,10 +584,12 @@ func (ds *decodeState) Load(obj reflect.Value) {
})
// Create the root object.
- ds.objectsByID = append(ds.objectsByID, &objectDecodeState{
+ rootOds := &objectDecodeState{
id: 1,
obj: obj,
- })
+ }
+ ds.objectsByID = append(ds.objectsByID, rootOds)
+ ds.pending.PushBack(rootOds)
// Read the number of objects.
lastID, object, err := ReadHeader(ds.r)