diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-21 19:31:46 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-21 21:12:36 +0100 |
commit | 9d5a3757c3e5bc2266053dbadb4a542a6dd5e7b8 (patch) | |
tree | 435d19fcb35234509a9ad6a64ecadfc4256418c6 | |
parent | 51b4ea6f485a852671a2a95122121ecb494de331 (diff) |
manager: always sort environment block, it's prettier
-rw-r--r-- | src/core/manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index dd0d83d116..f2f473b9f2 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -397,6 +397,8 @@ static int manager_default_environment(Manager *m) { if (!m->environment) return -ENOMEM; + strv_sort(m->environment); + return 0; } @@ -2507,7 +2509,7 @@ int manager_environment_add(Manager *m, char **minus, char **plus) { if (b != l) strv_free(b); - m->environment = l; + m->environment = strv_sort(l); return 0; } |