*p = '\0';
if (pure_unified_layout(ops) && strcmp(controller, "devices") == 0) {
- struct device_item device = {0};
+ struct device_item device = {};
ret = device_cgroup_rule_parse(&device, key, value);
if (ret < 0)
static int convert_devpath(const char *invalue, char *dest)
{
- struct device_item device = {0};
+ struct device_item device = {};
int ret;
ret = device_cgroup_rule_parse_devpath(&device, invalue);
const char *val)
{
#ifdef HAVE_STRUCT_BPF_CGROUP_DEV_CTX
- struct device_item device_item = {0};
+ struct device_item device_item = {};
int ret;
if (strcmp("devices.allow", key) == 0 && *val == '/')