diff --git a/zipfs/file.go b/zipfs/file.go index a81ea064..acac665d 100644 --- a/zipfs/file.go +++ b/zipfs/file.go @@ -33,7 +33,8 @@ func (f *File) fillBuffer(offset int64) (err error) { return } buf := make([]byte, int(offset)-len(f.buf)) - n, _ := io.ReadFull(f.reader, buf) + var n int + n, err = io.ReadFull(f.reader, buf) if n > 0 { f.buf = append(f.buf, buf[:n]...) }