Skip to content

Commit

Permalink
Fix passing lock by value in FileEntry.Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Sioro-Neoku committed Jan 13, 2019
1 parent dfd672b commit 6ccd33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileEntry.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type FileEntry struct {
}

// Seek seeks to the correct file position, paying attention to the offset.
func (f FileEntry) Seek(offset int64, whence int) (int64, error) {
func (f *FileEntry) Seek(offset int64, whence int) (int64, error) {
return f.Reader.Seek(offset+f.File.Offset(), whence)
}

Expand Down

0 comments on commit 6ccd33e

Please sign in to comment.