Get the first occurrence of multi-valued tags

This commit is contained in:
Deluan 2020-09-06 00:26:47 -04:00 committed by Deluan Quintão
parent a1879ff871
commit 78ecda5239

View file

@ -111,6 +111,8 @@ func go_map_put(id C.ulong, key *C.char, val *C.char) {
defer lock.RUnlock()
m := maps[uint32(id)]
k := strings.ToLower(C.GoString(key))
v := C.GoString(val)
m[k] = v
if _, ok := m[k]; !ok {
v := C.GoString(val)
m[k] = v
}
}