diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/client.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/client.go b/client/client.go index 1a3470f..ba81f4d 100644 --- a/client/client.go +++ b/client/client.go @@ -198,7 +198,8 @@ func (c *Client) GetEntries(ctx context.Context, start, end uint64) ([]*types.St return nil, fmt.Errorf("Unmarshal: %v", err) } ret := make([]*types.StItem, 0, len(list.Items)) - for _, item := range list.Items { + for i, _ := range list.Items { + item := list.Items[i] if got, want := item.Format, types.StFormatSignedChecksumV1; got != want { return nil, fmt.Errorf("unexpected StItem format: %v", got) } |