Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Avoid core while adding package to the universe.
Vsevolod Stakhov committed 12 years ago
commit 43ddb0042ee157720a8ea6d677237ba5c7b3a799
parent c7f209181fb35e63423be3e6d1889402a726c8ea
1 file changed +3 -2
modified libpkg/pkg_jobs.c
@@ -176,7 +176,7 @@ pkg_jobs_add_req(struct pkg_jobs *j, const char *origin, struct pkg *pkg, bool a
static int
pkg_jobs_handle_pkg_universe(struct pkg_jobs *j, struct pkg *pkg)
{
-
	struct pkg_job_universe_item *item, *cur, *tmp;
+
	struct pkg_job_universe_item *item, *cur, *tmp = NULL;
	const char *origin, *digest, *digest_cur;
	char *new_digest;
	int rc;
@@ -228,7 +228,8 @@ pkg_jobs_handle_pkg_universe(struct pkg_jobs *j, struct pkg *pkg)
	}

	item->pkg = pkg;
-
	tmp->next = item;
+
	if (tmp != NULL)
+
		tmp->next = item;

	return (EPKG_OK);
}