conf_reload(): Exit properly, even if no /etc/finit.d/*.conf exitsts

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-12-30 12:47:27 +01:00
parent e4c12314b1
commit f3305e75b7
+2 -1
View File
@@ -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();