mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
ldb_tdb: Use braces in ltdb_dn_list_find_val()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13015 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
6246c326a7
commit
5463601122
@ -83,7 +83,9 @@ static int ltdb_dn_list_find_val(const struct dn_list *list, const struct ldb_va
|
||||
{
|
||||
unsigned int i;
|
||||
for (i=0; i<list->count; i++) {
|
||||
if (dn_list_cmp(&list->dn[i], v) == 0) return i;
|
||||
if (dn_list_cmp(&list->dn[i], v) == 0) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user