Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not test a null key
Baptiste Daroussin committed 12 years ago
commit 533e255ad15a39726b070d7d5fa7097dec76b18a
parent 843dadc
1 file changed +3 -0
modified libpkg/pkg_config.c
@@ -693,6 +693,9 @@ add_repo(ucl_object_t *obj, struct pkg_repo *r, const char *rname)

	while ((cur = ucl_iterate_object(obj, &it, true))) {
		key = ucl_object_key(cur);
+
		if (key == NULL)
+
			continue;
+

		if (strcasecmp(key, "url") == 0) {
			if (cur->type != UCL_STRING) {
				pkg_emit_error("Expecting a string for the "