X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fload-dropin.c;h=95c9a386ca8efffc7a68cc951975cfd7e6e47454;hb=8b55b8c4e7fce5e05dcfd783a37fb843d1bf1868;hp=d53e77f706e042e61e0f300269e1f05e2516a381;hpb=5926cccae202f1b8869017d4bdaf9e9ce371bba6;p=elogind.git diff --git a/src/core/load-dropin.c b/src/core/load-dropin.c index d53e77f70..95c9a386c 100644 --- a/src/core/load-dropin.c +++ b/src/core/load-dropin.c @@ -168,9 +168,10 @@ int unit_load_dropin(Unit *u) { } if (!strv_isempty(strv)) { - _cleanup_strv_free_ char **files = NULL, **f; + _cleanup_strv_free_ char **files = NULL; + char **f; - r = conf_files_list_strv(&files, ".conf", (const char**) strv); + r = conf_files_list_strv(&files, ".conf", NULL, (const char**) strv); if (r < 0) { log_error("Failed to get list of configuration files: %s", strerror(-r)); return r; @@ -183,6 +184,5 @@ int unit_load_dropin(Unit *u) { } } - return 0; }