chiark / gitweb /
Report about syntax errors with metadata
[elogind.git] / src / core / load-dropin.c
index 942ad027e9c21c67f986eba9039812cf144a4817..67774d5238a0ecc0b55d2c96c83e811b6f5d9402 100644 (file)
@@ -173,7 +173,6 @@ char **unit_find_dropin_paths(Unit *u) {
 int unit_load_dropin(Unit *u) {
         Iterator i;
         char *t, **f;
-        _cleanup_strv_free_ char **strv = NULL;
         int r;
 
         assert(u);
@@ -199,7 +198,9 @@ int unit_load_dropin(Unit *u) {
                 return 0;
 
         STRV_FOREACH(f, u->dropin_paths) {
-                r = config_parse(*f, NULL, UNIT_VTABLE(u)->sections, config_item_perf_lookup, (void*) load_fragment_gperf_lookup, false, u);
+                r = config_parse(u->id, *f, NULL,
+                                 UNIT_VTABLE(u)->sections, config_item_perf_lookup,
+                                 (void*) load_fragment_gperf_lookup, false, u);
                 if (r < 0)
                         return r;
         }