From fa2a86ec61a80f7fe85a2bb9668885a0b287afd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 3 Jun 2010 18:37:15 +0200 Subject: [PATCH] ldb:ltdb_filter_attrs - fix a counter variable type --- source4/lib/ldb/ldb_tdb/ldb_search.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c index efd6968cebe..08ccc7933d9 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_search.c +++ b/source4/lib/ldb/ldb_tdb/ldb_search.c @@ -354,9 +354,10 @@ int ltdb_filter_attrs(struct ldb_message *msg, const char * const *attrs) } for (i = 0; i < msg->num_elements; i++) { - int j, found; + unsigned int j; + int found = 0; - for (j = 0, found = 0; attrs[j]; j++) { + for (j = 0; attrs[j]; j++) { if (ldb_attr_cmp(msg->elements[i].name, attrs[j]) == 0) { found = 1; break; -- 2.11.4.GIT