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 984a47a297..dbdc6a41df 100644
--- a/src/load-dropin.c
+++ b/src/load-dropin.c
@@ -50,7 +50,8 @@ static int iterate_dir(Unit *u, const char *path, UnitDependency dependency) {
if (ignore_file(de->d_name))
continue;
- if (asprintf(&f, "%s/%s", path, de->d_name) < 0) {
+ f = join(path, "/", de->d_name, NULL);
+ if (!f) {
r = -ENOMEM;
goto finish;
}