fix: init em.Data

This commit is contained in:
Derrick Hammer 2024-03-01 03:30:26 -05:00
parent c00fe56389
commit 4b6f71ea1a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,8 @@ func (em *ExtraMetadata) DecodeMsgpack(dec *msgpack.Decoder) error {
return err
}
em.Data = make(map[int]interface{}, mapLen)
for i := 0; i < mapLen; i++ {
key, err := dec.DecodeInt8()
if err != nil {