assert(bus);
assert(reply);
- return sd_bus_message_append(reply, "s", "");
+ return sd_bus_message_append(reply, "s", NULL);
}
static int property_get_syscall_filter(
return sd_bus_message_append(
reply, "s",
- v == VIRTUALIZATION_NONE ? "" : virtualization_to_string(v));
+ v == VIRTUALIZATION_NONE ? NULL : virtualization_to_string(v));
}
static int property_get_architecture(
assert(u);
f = unit_following(u);
- return sd_bus_message_append(reply, "s", f ? f->id : "");
+ return sd_bus_message_append(reply, "s", f ? f->id : NULL);
}
static int property_get_dependencies(
r = unit_get_unit_file_preset(u);
return sd_bus_message_append(reply, "s",
- r < 0 ? "":
+ r < 0 ? NULL:
r > 0 ? "enabled" : "disabled");
}
sd_bus_error *error) {
Unit *u = userdata;
- const char *t;
+ const char *t = NULL;
assert(bus);
assert(reply);
if (u->cgroup_path)
t = isempty(u->cgroup_path) ? "/" : u->cgroup_path;
- else
- t = "";
return sd_bus_message_append(reply, "s", t);
}