Skip to content

Commit

Permalink
perffile: fix: ensure file event attributes are collected without ove…
Browse files Browse the repository at this point in the history
…rwriting previous

fixes aclements#8
  • Loading branch information
jasonk000 committed Mar 27, 2023
1 parent 7b712e5 commit 7c9106a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion perffile/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ func New(r io.ReaderAt) (*File, error) {
if err := readSlice(attr.IDs.sectionReader(r), &ids); err != nil {
return nil, err
}
attrCopy := attr.Attr
for _, id := range ids {
file.idToAttr[id] = &attr.Attr
file.idToAttr[id] = &attrCopy
}
}

Expand Down

0 comments on commit 7c9106a

Please sign in to comment.