From: Kristian Høgsberg Date: Mon, 23 Jun 2008 18:43:08 +0000 (-0400) Subject: Compare the right index against pq->count. X-Git-Tag: 0.1~107^2 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=3f712232b97aa72f7f3a6560443f5c8a7f22363e;p=razor2.git%2F.git Compare the right index against pq->count. Fix a little logic error there. --- 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;