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)) {