diff options
Diffstat (limited to 'src/load-dropin.c')
-rw-r--r-- | src/load-dropin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/load-dropin.c b/src/load-dropin.c index dbdc6a41df..eafcc2fdf3 100644 --- a/src/load-dropin.c +++ b/src/load-dropin.c @@ -100,10 +100,10 @@ static int process_dir(Unit *u, const char *unit_path, const char *name, const c if (!(template = unit_name_template(name))) return -ENOMEM; - r = asprintf(&path, "%s/%s%s", unit_path, template, suffix); + path = join(unit_path, "/", template, suffix, NULL); free(template); - if (r < 0) + if (!path) return -ENOMEM; if (u->meta.manager->unit_path_cache && |