diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-14 02:34:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-16 18:59:07 +0200 |
commit | 9156e799a258658cf3f51434708cdb194c13eaa4 (patch) | |
tree | 99cfcee2deb8dfd4cadeff17df6113592f5077d7 /src/core/manager.c | |
parent | 3474ae3c7e1981301d0b35bc89d759ca13f06e8f (diff) |
manager: remove unavailable/redundant entries from default controllers list
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 5 |
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; } |