diff options
author | Michael Schroeder <mls@suse.de> | 2014-03-25 18:40:51 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-03-25 18:40:51 +0100 |
commit | ffc1e961c5c2f543f21a732b2d227872d629648f (patch) | |
tree | 5a0bd5ab31bac11f93a29f58e5db98f6f2c1c959 | |
parent | 3317e2d67d5874bc7393cffa2b9ad2f439e97ea8 (diff) | |
download | libsolv-ffc1e961c5c2f543f21a732b2d227872d629648f.tar.gz libsolv-ffc1e961c5c2f543f21a732b2d227872d629648f.tar.bz2 libsolv-ffc1e961c5c2f543f21a732b2d227872d629648f.zip |
adapt repo->end in repo_empty() function
-rw-r--r-- | src/repo.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -92,11 +92,13 @@ repo_empty(Repo *repo, int reuseids) if (s->repo != repo) break; pool_free_solvable_block(pool, i + 1, repo->end - (i + 1), reuseids); + repo->end = i + 1; } /* zero out (i.e. free) solvables belonging to this repo */ for (i = repo->start, s = pool->solvables + i; i < repo->end; i++, s++) if (s->repo == repo) memset(s, 0, sizeof(*s)); + repo->end = repo->start; repo->nsolvables = 0; /* free all data belonging to this repo */ |