From f3305e75b727fe7c138ba5e549555b7fee5c8cc6 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 30 Dec 2017 12:47:27 +0100 Subject: [PATCH] conf_reload(): Exit properly, even if no /etc/finit.d/*.conf exitsts Signed-off-by: Joachim Nilsson --- src/conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index cecc4c52..d95ec1fb 100644 --- a/src/conf.c +++ b/src/conf.c @@ -516,7 +516,7 @@ int conf_reload(void) num = scandir(rcsd, &e, NULL, alphasort); if (num < 0) { _d("Skipping %s, no files found ...", rcsd); - return 0; + goto done; } for (i = 0; i < num; i++) { @@ -566,6 +566,7 @@ int conf_reload(void) free(e[num]); free(e); +done: /* Drop record of all .conf changes */ drop_changes();