bus-unit-util: check returned value

Follow-up for 784b9a1a32.
This commit is contained in:
Yu Watanabe
2017-12-11 21:04:06 +09:00
parent 4a0e9289bf
commit 2d966746a3

View File

@@ -705,7 +705,9 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
if (r < 0)
return bus_log_create_error(r);
sd_bus_message_append_array(m, 'y', cpuset, CPU_ALLOC_SIZE(ncpus));
r = sd_bus_message_append_array(m, 'y', cpuset, CPU_ALLOC_SIZE(ncpus));
if (r < 0)
return bus_log_create_error(r);
r = sd_bus_message_close_container(m);