Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions perffile/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func New(r io.ReaderAt) (*File, error) {
// Read EventAttr IDs and create ID -> EventAttr map
file.idToAttr = make(map[attrID]*EventAttr)
for _, attr := range file.attrs {
attr := attr
var ids []attrID
if err := readSlice(attr.IDs.sectionReader(r), &ids); err != nil {
return nil, err
Expand Down