aboutsummaryrefslogtreecommitdiff
path: root/key/enc.go
diff options
context:
space:
mode:
Diffstat (limited to 'key/enc.go')
-rw-r--r--key/enc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/key/enc.go b/key/enc.go
index 6ade4f6..6f9b0ff 100644
--- a/key/enc.go
+++ b/key/enc.go
@@ -46,7 +46,7 @@ func (v *Enc) UnmarshalBinary(data []byte) error {
}
func ParseEnc(data []byte, d KeyDeriver) (*Enc, error) {
- var enc *Enc
+ enc := new(Enc)
if err := enc.UnmarshalBinary(data); err != nil {
return nil, err
}