summaryrefslogtreecommitdiff
path: root/src/load-dropin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/load-dropin.c')
-rw-r--r--src/load-dropin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/load-dropin.c b/src/load-dropin.c
index d30865cbc5..984a47a297 100644
--- a/src/load-dropin.c
+++ b/src/load-dropin.c
@@ -78,7 +78,8 @@ static int process_dir(Unit *u, const char *unit_path, const char *name, const c
assert(name);
assert(suffix);
- if (asprintf(&path, "%s/%s%s", unit_path, name, suffix) < 0)
+ path = join(unit_path, "/", name, suffix, NULL);
+ if (!path)
return -ENOMEM;
if (u->meta.manager->unit_path_cache &&