Skip to content

Commit

Permalink
pdf: add keyed field to struct literal
Browse files Browse the repository at this point in the history
Makes go vet happy.

Fixes rsc#20.
  • Loading branch information
leighmcculloch authored and rsc committed Jan 12, 2018
1 parent afe0640 commit 34a1e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion read.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 34a1e87

Please sign in to comment.