Compare the right index against pq->count.
authorKristian H?gsberg <krh@redhat.com>
Mon Jun 23 14:43:08 2008 -0400 (2008-06-23)
changeset 2672464313cbced
parent 266 9b652c3617d9
child 268 fb5c3e1535ab
Compare the right index against pq->count.

Fix a little logic error there.
librazor/iterator.c
     1.1 --- a/librazor/iterator.c	Mon Jun 23 14:34:47 2008 -0400
     1.2 +++ b/librazor/iterator.c	Mon Jun 23 14:43:08 2008 -0400
     1.3 @@ -248,7 +248,7 @@
     1.4  	else
     1.5  		index = NULL;
     1.6  
     1.7 -	for (i = 0, j = 0; i < pq->count; i++) {
     1.8 +	for (i = 0, j = 0; j < pq->count; i++) {
     1.9  		if (!pq->vector[i])
    1.10  			continue;
    1.11