Merge pull request #12756 from cdown/uninit

a couple of correctness fixups
This commit is contained in:
Yu Watanabe
2019-06-07 15:58:30 +09:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1378,6 +1378,8 @@ static CGroupMask unit_get_cgroup_mask(Unit *u) {
c = unit_get_cgroup_context(u);
assert(c);
/* Figure out which controllers we need, based on the cgroup context object */
if (c->cpu_accounting)
+1 -1
View File
@@ -1942,7 +1942,7 @@ static void output_machines_list(struct machine_info *machine_infos, unsigned n)
statelen = STRLEN("STATE"),
failedlen = STRLEN("FAILED"),
jobslen = STRLEN("JOBS");
bool state_missing;
bool state_missing = false;
assert(machine_infos || n == 0);