core/main: log about save_env() error

This commit is contained in:
Mike Yuan
2025-03-08 20:40:24 +01:00
parent 0ddf4acab4
commit eda75b2cb2
+1 -1
View File
@@ -3021,7 +3021,7 @@ static int save_env(void) {
l = strv_copy(environ);
if (!l)
return -ENOMEM;
return log_oom();
strv_free_and_replace(saved_env, l);
return 0;