Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Ensure an item is passed to pkg_job_add_req()
Bryan Drewery committed 11 years ago
commit a423e5eba14f16775b94bdf2dce19d3e954b366c
parent 3d9f688
1 file changed +3 -0
modified libpkg/pkg_jobs.c
@@ -258,6 +258,9 @@ pkg_jobs_add_req(struct pkg_jobs *j, const char *uid,
{
	struct pkg_job_request *req, *test, **head;

+
	assert(item);
+
	assert(item->pkg);
+

	if (!IS_DELETE(j)) {
		head = &j->request_add;
		assert(item->pkg->type != PKG_INSTALLED);