From d4b442c25d43813a15e775d971ab0b1ccf530b51 Mon Sep 17 00:00:00 2001 From: Matthias Fulz Date: Tue, 22 Oct 2019 14:36:28 +0200 Subject: [PATCH] Bugfix for unmarshalling pointers --- unmarshal.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unmarshal.go b/unmarshal.go index b7f91c0..206b465 100644 --- a/unmarshal.go +++ b/unmarshal.go @@ -560,10 +560,11 @@ func unmarshal(e interface{}, in []byte) (n int, err error) { if err != nil { return 0, err } + return unmarshal(e, in) } } - return unmarshal(e, in) + return unmarshal(p, in) } func RegisterDecoder(name string, f func(e interface{}, in []byte) (n int, err error)) {