Skip to content

Commit

Permalink
Fix infinite recursion in indexfile_linux.go.
Browse files Browse the repository at this point in the history
Change-Id: Idfbf746eb434a0a90f1e8e6b53c98103be3f3f95
  • Loading branch information
hanwen committed Nov 7, 2016
1 parent a82cc73 commit 13d31e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexfile_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (f *mmapedIndexFile) Read(off, sz uint32) ([]byte, error) {
}

func (f *mmapedIndexFile) Name() string {
return f.Name()
return f.name
}

func (f *mmapedIndexFile) Size() (uint32, error) {
Expand Down

0 comments on commit 13d31e1

Please sign in to comment.