From 7bdbe0c48d63ec2f2f96d7fc9106cad8a19da9db Mon Sep 17 00:00:00 2001 From: Hanno Hecker Date: Thu, 7 Jan 2016 05:26:09 +0100 Subject: [PATCH] fix typo --- union.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/union.go b/union.go index c11c1ad..bd6cff4 100644 --- a/union.go +++ b/union.go @@ -103,7 +103,7 @@ func (f *UnionFile) Read(s []byte) (int, error) { if (err == nil || err == io.EOF) && f.base != nil { // advance the file position also in the base file, the next // call may be a write at this position (or a seek with SEEK_CUR) - if _, seekErr := f.base.Seek(int64(n), os.SEEK_CUR); serr != nil { + if _, seekErr := f.base.Seek(int64(n), os.SEEK_CUR); seekErr != nil { // only overwrite err in case the seek fails: we need to // report an eventual io.EOF to the caller err = seekErr