build: fix gocritic lint issue underef

This commit is contained in:
albertony 2024-05-31 15:14:40 +02:00 committed by Nick Craig-Wood
parent bad8207378
commit 4454ed9d3b
2 changed files with 4 additions and 4 deletions

View file

@ -888,7 +888,7 @@ func (fh *decrypter) fillBuffer() (err error) {
fs.Errorf(nil, "crypt: ignoring: %v", ErrorEncryptedBadBlock)
// Zero out the bad block and continue
for i := range (*fh.buf)[:n] {
(*fh.buf)[i] = 0
fh.buf[i] = 0
}
}
fh.bufIndex = 0