Commit ede8a5f5 authored by Quentin Smith's avatar Quentin Smith

storage: avoid map reuse

Change-Id: I7f8c384dc9dd47b2706392188685a106a1ed487a
Reviewed-on: https://go-review.googlesource.com/36251Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 8abf3ce4
......@@ -180,6 +180,10 @@ func (ul *UploadList) Next() bool {
if ul.err != nil {
return false
}
// Clear UploadInfo before decoding new value.
ul.ui = UploadInfo{}
ul.err = ul.dec.Decode(&ul.ui)
return ul.err == nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment