Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Silently return when obj is NULL
Renato Botelho committed 8 years ago
commit 35d1c923b67b8f9a849b9e0894aa707a52beac41
parent 4e7f53e
1 file changed +4 -0
modified libpkg/pkg_repo.c
@@ -977,6 +977,10 @@ pkg_repo_load_fingerprint(const char *dir, const char *filename)
	obj = ucl_parser_get_object(p);
	close(fd);

+
	/* Silently return if obj is NULL */
+
	if (!obj)
+
		return(NULL);
+

	if (obj->type == UCL_OBJECT)
		f = pkg_repo_parse_fingerprint(obj);