diff options
Diffstat (limited to 'src')
-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; } |