Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix jobs iteration function.
Vsevolod Stakhov committed 12 years ago
commit 10712d737f95fa15e09f3416ffd5fbcc0f106471
parent 0574786fc7f63cb6fce8baa98a5a1af26a302bcc
1 file changed +1 -1
modified libpkg/pkg_jobs.c
@@ -173,7 +173,7 @@ pkg_jobs_iter(struct pkg_jobs *jobs, void **iter,
		s = *iter;
	}
	*new = s->items[0]->pkg;
-
	*old = s->items[1]->pkg;
+
	*old = s->items[1] ? s->items[1]->pkg : NULL;
	*type = s->type;
	*iter = s->next ? s->next : jobs->jobs;
	return (true);