chiark / gitweb /
build-sys: minor fixes found with cppcheck
[elogind.git] / src / core / dbus-cgroup.c
index 39865a96da7d0e5e44c7fed2b163222ed17581ea..861bb16445ed718962112cac254a4f694809f32d 100644 (file)
@@ -484,6 +484,8 @@ int bus_cgroup_set_property(
 
                         n++;
                 }
+                if (r < 0)
+                        return r;
 
                 if (mode != UNIT_CHECK) {
                         _cleanup_free_ char *buf = NULL;