summaryrefslogtreecommitdiffstats
path: root/src/machine/machined.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine/machined.c')
-rw-r--r--src/machine/machined.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/machine/machined.c b/src/machine/machined.c
index 9fb67882e1..54f8d836a2 100644
--- a/src/machine/machined.c
+++ b/src/machine/machined.c
@@ -124,9 +124,8 @@ static int manager_add_host_machine(Manager *m) {
t->leader = 1;
t->id = mid;
- t->root_directory = rd;
- t->unit = unit;
- rd = unit = NULL;
+ t->root_directory = TAKE_PTR(rd);
+ t->unit = TAKE_PTR(unit);
dual_timestamp_from_boottime_or_monotonic(&t->timestamp, 0);