mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
core/scope: serialize_item() is NOP on NULL
This commit is contained in:
@@ -502,8 +502,7 @@ static int scope_serialize(Unit *u, FILE *f, FDSet *fds) {
|
||||
(void) serialize_item(f, "state", scope_state_to_string(s->state));
|
||||
(void) serialize_bool(f, "was-abandoned", s->was_abandoned);
|
||||
|
||||
if (s->controller)
|
||||
(void) serialize_item(f, "controller", s->controller);
|
||||
(void) serialize_item(f, "controller", s->controller);
|
||||
|
||||
SET_FOREACH(pid, u->pids)
|
||||
serialize_pidref(f, fds, "pids", pid);
|
||||
|
||||
Reference in New Issue
Block a user