From 061831edf25ba854b603635ade82f0ce317fe8bc Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 30 Sep 2015 20:31:41 +0200 Subject: DecryptBlocks: Don't shadow err variable --- cryptfs/cryptfs_content.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cryptfs/cryptfs_content.go b/cryptfs/cryptfs_content.go index 374b4f4..5350ec7 100644 --- a/cryptfs/cryptfs_content.go +++ b/cryptfs/cryptfs_content.go @@ -21,7 +21,8 @@ func (be *CryptFS) DecryptBlocks(ciphertext []byte) ([]byte, error) { var pBuf bytes.Buffer for cBuf.Len() > 0 { cBlock := cBuf.Next(int(be.cipherBS)) - pBlock, err := be.DecryptBlock(cBlock) + var pBlock []byte + pBlock, err = be.DecryptBlock(cBlock) if err != nil { break } -- cgit v1.2.3