core: strv_env_clean() modifies in-place, no need to set buf to itself

This commit is contained in:
Mike Yuan
2025-05-29 21:01:43 +02:00
parent 4d67fcabed
commit 94f533e305
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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)