1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-11 20:58:27 +03:00

core/main: log about save_env() error

This commit is contained in:
Mike Yuan 2025-03-08 20:04:17 +01:00
parent 0ddf4acab4
commit eda75b2cb2
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -3021,7 +3021,7 @@ static int save_env(void) {
l = strv_copy(environ); l = strv_copy(environ);
if (!l) if (!l)
return -ENOMEM; return log_oom();
strv_free_and_replace(saved_env, l); strv_free_and_replace(saved_env, l);
return 0; return 0;