From 3f712232b97aa72f7f3a6560443f5c8a7f22363e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 23 Jun 2008 14:43:08 -0400 Subject: [PATCH] Compare the right index against pq->count. Fix a little logic error there. --- librazor/iterator.c | 2 +- 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; -- 1.7.1