Compare the right index against pq->count.
authorKristian Høgsberg <krh@redhat.com>
Mon, 23 Jun 2008 18:43:08 +0000 (14:43 -0400)
committerKristian Høgsberg <krh@redhat.com>
Mon, 23 Jun 2008 18:43:08 +0000 (14:43 -0400)
Fix a little logic error there.

librazor/iterator.c

index addbe68..60adebe 100644 (file)
@@ -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;