1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-10 13:57:25 +03:00

dropin: let's prefer strjoina() over strjoin()

This commit is contained in:
Lennart Poettering 2017-02-09 20:08:44 +01:00
parent 09c624878a
commit 96bb2fd8bd

View File

@ -148,16 +148,14 @@ static int unit_file_find_dirs(
const char *suffix,
char ***dirs) {
_cleanup_free_ char *path = NULL;
char *path;
int r;
assert(unit_path);
assert(name);
assert(suffix);
path = strjoin(unit_path, "/", name, suffix);
if (!path)
return log_oom();
path = strjoina(unit_path, "/", name, suffix);
if (!unit_path_cache || set_get(unit_path_cache, path)) {
r = unit_file_find_dir(original_root, path, dirs);