Get the first occurrence of multi-valued tags

This commit is contained in:
Deluan authored and Deluan Quintão committed 2020-09-08 13:33:07 -04:00
1 parent a1879ff871
commit 78ecda5239
1 file changed
+4 -2
+4 -2
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
}
}