summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-06 16:54:59 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-06 16:54:59 +0300
commitba005f2e97b025d91758f513e808717e4baa4287 (patch)
tree36481d492486abec9d2dc4c34203c8c46b295e71 /src/state.c
parentbf7b80662d75181caf1619c047078dafe80346f9 (diff)
downloadapk-tools-ba005f2e97b025d91758f513e808717e4baa4287.tar.gz
apk-tools-ba005f2e97b025d91758f513e808717e4baa4287.tar.bz2
apk-tools-ba005f2e97b025d91758f513e808717e4baa4287.tar.xz
apk-tools-ba005f2e97b025d91758f513e808717e4baa4287.zip
state: bug fix
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c
index a46fc4f..dcb2c7c 100644
--- a/src/state.c
+++ b/src/state.c
@@ -113,11 +113,10 @@ static struct apk_name_choices *name_choices_new(struct apk_database *db,
& dep->result_mask) {
j++;
} else {
- nc->pkgs[i] = nc->pkgs[nc->num - 1];
+ nc->pkgs[j] = nc->pkgs[nc->num - 1];
nc->num--;
}
}
-
}
return nc;