Bugfix for unmarshalling pointers

This commit is contained in:
Matthias Fulz 2019-10-22 14:36:28 +02:00
parent f4c84c435f
commit d4b442c25d
1 changed files with 2 additions and 1 deletions

View File

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