Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
return NULL is asked to iterate on a null object
Baptiste Daroussin committed 12 years ago
commit 8cacbb9bc175a30399b50934e16e38f929706f36
parent 427cacd
1 file changed +3 -0
modified libpkg/pkg_object.c
@@ -49,6 +49,9 @@ pkg_object_key(pkg_object *o)
pkg_object *
pkg_object_iterate(pkg_object *o, pkg_iter *it)
{
+
	if (o == NULL)
+
		return (NULL);
+

	return (ucl_iterate_object(o, it, true));
}