We always normalize empty setting to NULL, hence per our usual
coding style a simply NULL check would suffice.
fprintf(f, "%sDelegateSubgroup: %s\n",
prefix, c->delegate_subgroup);
- if (!isempty(c->bind_network_interface))
+ if (c->bind_network_interface)
fprintf(f, "%sBindNetworkInterface: %s\n",
prefix, c->bind_network_interface);
if (!c)
return false;
- return !isempty(c->bind_network_interface);
+ return c->bind_network_interface;
}
static CGroupMask unit_get_cgroup_mask(Unit *u) {