mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
Warning cleanup: Missing braces in initialization. signed meets unsigned.
This commit is contained in:
parent
3c7d9415b4
commit
3b90f84422
@ -1575,7 +1575,7 @@ meta_back_controls_add(
|
||||
|
||||
LDAPControl **ctrls = NULL;
|
||||
/* set to the maximum number of controls this backend can add */
|
||||
LDAPControl c[ 2 ] = { 0 };
|
||||
LDAPControl c[ 2 ] = {{ 0 }};
|
||||
int n = 0, i, j1 = 0, j2 = 0;
|
||||
|
||||
*pctrls = NULL;
|
||||
@ -1642,7 +1642,7 @@ meta_back_controls_add(
|
||||
goto done;
|
||||
}
|
||||
|
||||
assert( j1 + j1 <= sizeof( c )/sizeof(LDAPControl) );
|
||||
assert( j1 + j2 <= (int) (sizeof( c )/sizeof( c[0] )) );
|
||||
|
||||
if ( op->o_ctrls ) {
|
||||
for ( n = 0; op->o_ctrls[ n ]; n++ )
|
||||
|
Loading…
Reference in New Issue
Block a user