From: Klaus Kaempf Date: Thu, 21 Feb 2008 12:47:41 +0000 (+0000) Subject: re-compute 's' pointer while iterating repo solvables in order to cope X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b626bcaea455c63fa5180a5cb9be65c5d7cf887;p=thirdparty%2Flibsolv.git re-compute 's' pointer while iterating repo solvables in order to cope with re-allocs happening inside the loop body. --- diff --git a/src/repo.h b/src/repo.h index 6b823fb5..a6415415 100644 --- a/src/repo.h +++ b/src/repo.h @@ -132,7 +132,7 @@ static inline void repo_free_solvable_block(Repo *repo, Id start, int count, int } #define FOR_REPO_SOLVABLES(r, p, s) \ - for (p = (r)->start, s = (r)->pool->solvables + p; p < (r)->end; p++, s++) \ + for (p = (r)->start, s = (r)->pool->solvables + p; p < (r)->end; p++, s = (r)->pool->solvables + p) \ if (s->repo == (r))