summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-14 02:34:10 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-16 18:59:07 +0200
commit9156e799a258658cf3f51434708cdb194c13eaa4 (patch)
tree99cfcee2deb8dfd4cadeff17df6113592f5077d7 /src/core/manager.c
parent3474ae3c7e1981301d0b35bc89d759ca13f06e8f (diff)
manager: remove unavailable/redundant entries from default controllers list
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index c8ac29be5b..44690525ea 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -3165,12 +3165,15 @@ int manager_set_default_controllers(Manager *m, char **controllers) {
assert(m);
- if (!(l = strv_copy(controllers)))
+ l = strv_copy(controllers);
+ if (!l)
return -ENOMEM;
strv_free(m->default_controllers);
m->default_controllers = l;
+ manager_shorten_default_controllers(m);
+
return 0;
}