diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-08-20 22:43:35 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-20 22:43:35 +0000 |
commit | f8ba1b4e98ba4aa36221be3115885cef800015ab (patch) | |
tree | ff0c788c2b690073fb154db8e9bbf182a680513b /pkg/state/decode.go | |
parent | 233e1b775fd3188da44f8cbf8449350f21ad7f91 (diff) | |
parent | df4822709992c971af0f9b339d915f6e629c0225 (diff) |
Merge release-20200810.0-76-gdf4822709 (automated)
Diffstat (limited to 'pkg/state/decode.go')
-rw-r--r-- | pkg/state/decode.go | 6 |
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) |