Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix variables count.
Vsevolod Stakhov committed 11 years ago
commit bd9437f6608c6fe3afdce0aa61381b92739660fd
parent e47217a
1 file changed +1 -1
modified libpkg/pkg_solve.c
@@ -1013,7 +1013,7 @@ pkg_solve_jobs_to_sat(struct pkg_jobs *j)
	}

	problem->j = j;
-
	problem->nvars = HASH_CNT(hh, j->universe->items);
+
	problem->nvars = j->universe->nitems;
	problem->variables = calloc(problem->nvars, sizeof(struct pkg_solve_variable));

	if (problem->variables == NULL) {