pkg_metadir: this must use HASH_ADD_STR instead!
This commit is contained in:
parent
edc9853904
commit
37b7cccc83
@ -109,12 +109,7 @@ xbps_metadir_get_pkgd(struct xbps_handle *xhp, const char *name)
|
||||
assert(pm);
|
||||
strlcpy(pm->name, name, sizeof(pm->name));
|
||||
pm->d = d;
|
||||
|
||||
HASH_ADD_KEYPTR(hh,
|
||||
pkgmetas,
|
||||
__UNCONST(name),
|
||||
strlen(__UNCONST(name)),
|
||||
pm);
|
||||
HASH_ADD_STR(pkgmetas, name, pm);
|
||||
|
||||
return d;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user