From 34a1e87c620a30fa438e1c8973b0aeb552e6fc44 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch Date: Sun, 31 Dec 2017 07:17:02 +0000 Subject: [PATCH] pdf: add keyed field to struct literal Makes go vet happy. Fixes #20. --- read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read.go b/read.go index eb8b9aa..e2af860 100644 --- a/read.go +++ b/read.go @@ -1052,7 +1052,7 @@ func decryptStream(key []byte, useAES bool, ptr objptr, rd io.Reader) io.Reader rd = &cbcReader{cbc: cbc, rd: rd, buf: make([]byte, 16)} } else { c, _ := rc4.NewCipher(key) - rd = &cipher.StreamReader{c, rd} + rd = &cipher.StreamReader{S: c, R: rd} } return rd }