diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 593c04ae5c..e96a031c86 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -5254,7 +5254,7 @@ int exec_invoke( *exit_status = EXIT_MEMORY; return log_oom(); } - accum_env = strv_env_clean(accum_env); + strv_env_clean(accum_env); (void) umask(context->umask); diff --git a/src/core/execute.c b/src/core/execute.c index 8d96109473..2e5303987c 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -934,7 +934,7 @@ static int exec_context_load_environment(const Unit *unit, const ExecContext *c, .path = *path, }; - p = strv_env_clean_with_callback(p, invalid_env, &info); + strv_env_clean_with_callback(p, invalid_env, &info); } if (!v)