summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-03 18:37:15 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-06 20:46:52 +0200
commitfa2a86ec61a80f7fe85a2bb9668885a0b287afd6 (patch)
tree9f4ff8ac76de8b4f4949a149ea11e8f7f59d6b94
parentf3f91063bd1f79c8734fa55e92392a8f30ec4144 (diff)
downloadsamba-fa2a86ec61a80f7fe85a2bb9668885a0b287afd6.tar.gz
samba-fa2a86ec61a80f7fe85a2bb9668885a0b287afd6.tar.bz2
samba-fa2a86ec61a80f7fe85a2bb9668885a0b287afd6.zip
ldb:ltdb_filter_attrs - fix a counter variable type
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c5
1 files 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 efd6968ceb..08ccc7933d 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;