int bus_endpoint_add_policy(BusEndpoint *ep, const char *name, BusPolicyAccess access)
{
- _cleanup_free_ BusEndpointPolicy *po;
- _cleanup_free_ char *key;
+ _cleanup_free_ BusEndpointPolicy *po = NULL;
+ _cleanup_free_ char *key = NULL;
int r;
assert(ep);
return 0;
}
} else {
- ep->policy_hash = hashmap_new(string_hash_func, string_compare_func);
+ ep->policy_hash = hashmap_new(&string_hash_ops);
if (!ep->policy_hash)
return -ENOMEM;
}