Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix bus error with new autoremove code
Baptiste Daroussin committed 3 years ago
commit 8fe974f0d59dc2747e12d4b638d6cafd7a950d43
parent 346659b
1 file changed +2 -0
modified libpkg/pkg_jobs.c
@@ -706,6 +706,7 @@ pkg_jobs_test_automatic(struct pkg_jobs *j, struct pkg *p)
		it = pkgdb_query_require(j->db, i->item);
		if (it == NULL)
			continue;
+
		npkg = NULL;
		while (pkgdb_it_next(it, &npkg, PKG_LOAD_BASIC) == EPKG_OK) {
			if (!is_orphaned(j, npkg->uid))
				return (false);
@@ -716,6 +717,7 @@ pkg_jobs_test_automatic(struct pkg_jobs *j, struct pkg *p)
		it = pkgdb_query_shlib_require(j->db, i->item);
		if (it == NULL)
			continue;
+
		npkg = NULL;
		while (pkgdb_it_next(it, &npkg, PKG_LOAD_BASIC) == EPKG_OK) {
			if (!is_orphaned(j, npkg->uid))
				return (false);