Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Simplify a bit the code
Baptiste Daroussin committed 6 years ago
commit 5903a49e8a027c73bdd6090262caf6865b0c5aae
parent f75bda1
1 file changed +2 -5
modified libpkg/pkg_config.c
@@ -1026,14 +1026,11 @@ pkg_ini(const char *path, const char *reposdir, pkg_init_flags flags)
	if (conffd != -1) {
		if (!ucl_parser_add_fd(p, conffd)) {
			pkg_emit_error("Invalid configuration file: %s", ucl_parser_get_error(p));
-
		} else {
-
			obj = ucl_parser_get_object(p);
		}
-
	}
-

-
	if (conffd != -1)
		close(conffd);
+
	}

+
	obj = ucl_parser_get_object(p);
	ncfg = NULL;
	utstring_new(ukey);
	while (obj != NULL && (cur = ucl_iterate_object(obj, &it, true))) {