summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
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;