diff --git a/src/core/main.c b/src/core/main.c index 02a28eba23..15e29bbcba 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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;