summaryrefslogtreecommitdiff
path: root/librazor
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-06-23 14:43:08 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-23 14:43:08 -0400
commit3f712232b97aa72f7f3a6560443f5c8a7f22363e (patch)
treef757ab895329a10ea1bf39266c4876decfc1d8b9 /librazor
parentd52745a2ec3f28dcdd4332e4e49f2255a4b704ad (diff)
Compare the right index against pq->count.
Fix a little logic error there.
Diffstat (limited to 'librazor')
-rw-r--r--librazor/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librazor/iterator.c b/librazor/iterator.c
index addbe68..60adebe 100644
--- a/librazor/iterator.c
+++ b/librazor/iterator.c
@@ -248,7 +248,7 @@ razor_package_query_finish(struct razor_package_query *pq)
else
index = NULL;
- for (i = 0, j = 0; i < pq->count; i++) {
+ for (i = 0, j = 0; j < pq->count; i++) {
if (!pq->vector[i])
continue;