mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
manager: log on two OOM occasions
This commit is contained in:
parent
e16f425654
commit
2fbbbf9a5f
@ -623,7 +623,7 @@ static int manager_default_environment(Manager *m) {
|
||||
m->transient_environment = strv_copy(environ);
|
||||
|
||||
if (!m->transient_environment)
|
||||
return -ENOMEM;
|
||||
return log_oom();
|
||||
|
||||
sanitize_environment(m->transient_environment);
|
||||
|
||||
@ -3875,7 +3875,7 @@ int manager_transient_environment_add(Manager *m, char **plus) {
|
||||
|
||||
a = strv_env_merge(2, m->transient_environment, plus);
|
||||
if (!a)
|
||||
return -ENOMEM;
|
||||
return log_oom();
|
||||
|
||||
sanitize_environment(a);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user