core: strv_env_clean() modifies in-place, no need to set buf to itself
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user