summaryrefslogtreecommitdiff
path: root/cryptfs
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-09-30 20:31:41 +0200
committerJakob Unterwurzacher2015-09-30 20:31:41 +0200
commit061831edf25ba854b603635ade82f0ce317fe8bc (patch)
treef2da39948049d03027a9f29edf899da7dd776beb /cryptfs
parent7d666bd87d9ccfebfdb61639982ccbbb0cd73f17 (diff)
DecryptBlocks: Don't shadow err variable
Diffstat (limited to 'cryptfs')
-rw-r--r--cryptfs/cryptfs_content.go3
1 files changed, 2 insertions, 1 deletions
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
}