summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-03-25 18:40:51 +0100
committerMichael Schroeder <mls@suse.de>2014-03-25 18:40:51 +0100
commitffc1e961c5c2f543f21a732b2d227872d629648f (patch)
tree5a0bd5ab31bac11f93a29f58e5db98f6f2c1c959
parent3317e2d67d5874bc7393cffa2b9ad2f439e97ea8 (diff)
downloadlibsolv-ffc1e961c5c2f543f21a732b2d227872d629648f.tar.gz
libsolv-ffc1e961c5c2f543f21a732b2d227872d629648f.tar.bz2
libsolv-ffc1e961c5c2f543f21a732b2d227872d629648f.zip
adapt repo->end in repo_empty() function
-rw-r--r--src/repo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repo.c b/src/repo.c
index 1a934b8..e82008f 100644
--- a/src/repo.c
+++ b/src/repo.c
@@ -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 */