diff options
Diffstat (limited to 'load-fragment.c')
-rw-r--r-- | load-fragment.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/load-fragment.c b/load-fragment.c index 0db74b3eee..1a334bbc13 100644 --- a/load-fragment.c +++ b/load-fragment.c @@ -35,19 +35,15 @@ static int config_parse_deps( FOREACH_WORD(w, &l, rvalue, state) { char *t; int r; - Unit *other; if (!(t = strndup(w, l))) return -ENOMEM; - r = manager_load_unit(u->meta.manager, t, &other); + r = unit_add_dependency_by_name(u, d, t); free(t); if (r < 0) return r; - - if ((r = unit_add_dependency(u, d, other)) < 0) - return r; } return 0; |