mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
fix ambiguous use of && and || (please check :)
This commit is contained in:
parent
f57d33f636
commit
6b8e16efec
1 changed files with 3 additions and 3 deletions
|
|
@ -269,7 +269,7 @@ int UTF8bvnormcmp(
|
|||
struct berval *bv2,
|
||||
unsigned flags )
|
||||
{
|
||||
int i, l1, l2, len, ulen, res;
|
||||
int i, l1, l2, len, ulen, res = 0;
|
||||
char *s1, *s2, *done;
|
||||
unsigned long *ucs, *ucsout1, *ucsout2;
|
||||
unsigned casefold = flags & LDAP_UTF8_CASEFOLD;
|
||||
|
|
@ -310,8 +310,8 @@ int UTF8bvnormcmp(
|
|||
if (!LDAP_UTF8_ISASCII(s1) || !LDAP_UTF8_ISASCII(s2)) {
|
||||
break;
|
||||
}
|
||||
} else if ((len < l1) && !LDAP_UTF8_ISASCII(s1) ||
|
||||
(len < l2) && !LDAP_UTF8_ISASCII(s2)) {
|
||||
} else if (((len < l1) && !LDAP_UTF8_ISASCII(s1)) ||
|
||||
((len < l2) && !LDAP_UTF8_ISASCII(s2))) {
|
||||
break;
|
||||
}
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Reference in a new issue